mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-11-20 18:59:26 +01:00
LCL: TTextStrings: fixed AddStrings checking if copying objects is needed
git-svn-id: trunk@18770 -
This commit is contained in:
parent
1f3f833a84
commit
44137fd82d
@ -688,10 +688,12 @@ procedure TTextStrings.AddStrings(TheStrings: TStrings);
|
||||
if TheStrings is TTextStrings then
|
||||
Result:=TTextStrings(TheStrings).HasObjects
|
||||
else
|
||||
begin
|
||||
for i:=0 to TheStrings.Count-1 do
|
||||
if TheStrings.Objects[i]<>nil then
|
||||
exit(true);
|
||||
Result:=false;
|
||||
Result:=false;
|
||||
end;
|
||||
end;
|
||||
|
||||
var
|
||||
|
||||
Loading…
Reference in New Issue
Block a user