lcl: fix TCustomImageList.AddImages (fixes bug #0014289)

git-svn-id: trunk@21554 -
This commit is contained in:
paul 2009-09-03 11:07:10 +00:00
parent 095869caaf
commit 0bf3e3af55

View File

@ -108,10 +108,10 @@ begin
if HandleAllocated
then begin
p := @FData[OldCount];
for n := OldCount to FCount - AValue.FCount - 1 do
for n := OldCount to FCount - 1 do
begin
TWSCustomImageListClass(WidgetSetClass).Insert(Self, n, p);
Inc(p, DataSize);
Inc(PByte(p), DataSize);
end;
end;
end