mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-17 15:39:30 +02:00
SynEdit: Fix Lines.SetCapacity
git-svn-id: trunk@25676 -
This commit is contained in:
parent
67b7304389
commit
f2d9c5841d
@ -1005,7 +1005,10 @@ end;
|
|||||||
|
|
||||||
procedure TSynEditStringList.SetCapacity(NewCapacity: integer);
|
procedure TSynEditStringList.SetCapacity(NewCapacity: integer);
|
||||||
begin
|
begin
|
||||||
|
if NewCapacity < Count then
|
||||||
|
fList.Count := NewCapacity;
|
||||||
fList.SetCapacity(NewCapacity);
|
fList.SetCapacity(NewCapacity);
|
||||||
|
IncreaseTextChangeStamp;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
procedure TSynEditStringList.SetUpdateState(Updating: Boolean; Sender: TObject);
|
procedure TSynEditStringList.SetUpdateState(Updating: Boolean; Sender: TObject);
|
||||||
|
Loading…
Reference in New Issue
Block a user