* Put Collection.Assign loop in beginupdate/endupdate (bug ID 33517)

git-svn-id: trunk@38628 -
This commit is contained in:
michael 2018-03-26 19:02:51 +00:00
parent 31a354a3bc
commit 6d49a7b93f

View File

@ -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