LCL: TTextStrings: fixed AddStrings checking if copying objects is needed

git-svn-id: trunk@18770 -
This commit is contained in:
mattias 2009-02-20 10:54:22 +00:00
parent 1f3f833a84
commit 44137fd82d

View File

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