LCL: image list cache: fix TSpeedButton NumGlyphs>0. Issue #33105

git-svn-id: trunk@57206 -
This commit is contained in:
ondrej 2018-02-01 13:55:21 +00:00
parent 13e218e448
commit d67baf1433

View File

@ -210,7 +210,7 @@ begin
Item^.FListener := AListener;
end;
AStart := Item^.FImageList.Add(ABitmap, nil);
AStart := Item^.FImageList.AddSliced(ABitmap, ABitmapCount, 1);
AListener.CacheSetImageList(Item^.FImageList);
OldLen := Length(Item^.FImageIndexes);
SetLength(Item^.FImageIndexes, OldLen + Item^.FImageList.Count - AStart);