mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-11 18:08:35 +02:00
LCL: image list cache: fix TSpeedButton NumGlyphs>0. Issue #33105
git-svn-id: trunk@57206 -
This commit is contained in:
parent
13e218e448
commit
d67baf1433
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user