mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-20 19:29:26 +02:00
* Put Collection.Assign loop in beginupdate/endupdate (bug ID 33517)
git-svn-id: trunk@38628 -
This commit is contained in:
parent
31a354a3bc
commit
6d49a7b93f
@ -325,9 +325,14 @@ Var I : Longint;
|
||||
begin
|
||||
If Source is TCollection then
|
||||
begin
|
||||
Clear;
|
||||
For I:=0 To TCollection(Source).Count-1 do
|
||||
Add.Assign(TCollection(Source).Items[I]);
|
||||
BeginUpdate;
|
||||
try
|
||||
Clear;
|
||||
For I:=0 To TCollection(Source).Count-1 do
|
||||
Add.Assign(TCollection(Source).Items[I]);
|
||||
finally
|
||||
EndUpdate;
|
||||
end;
|
||||
exit;
|
||||
end
|
||||
else
|
||||
|
Loading…
Reference in New Issue
Block a user