mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-16 12:29:29 +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);
|
||||
begin
|
||||
if NewCapacity < Count then
|
||||
fList.Count := NewCapacity;
|
||||
fList.SetCapacity(NewCapacity);
|
||||
IncreaseTextChangeStamp;
|
||||
end;
|
||||
|
||||
procedure TSynEditStringList.SetUpdateState(Updating: Boolean; Sender: TObject);
|
||||
|
Loading…
Reference in New Issue
Block a user