mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-06-01 16:12:36 +02:00
Gtk3: fixed loading smallimages in TistView.ViewStyle = vsSmallIcon
This commit is contained in:
parent
291a9fd3dd
commit
82f47a7b6f
@ -7440,9 +7440,12 @@ begin
|
||||
AModel^.get_iter(@iter,path);
|
||||
|
||||
bmp := TBitmap.Create;
|
||||
if Assigned(TCustomListViewHack(LCLObject).LargeImages) then
|
||||
if (TCustomListViewHack(LCLObject).ViewStyle = vsIcon) and Assigned(TCustomListViewHack(LCLObject).LargeImages) then
|
||||
TCustomListViewHack(LCLObject).LargeImages.GetBitmap(AItem.ImageIndex, bmp)
|
||||
else
|
||||
if (TCustomListViewHack(LCLObject).ViewStyle = vsSmallIcon) and Assigned(TCustomListViewHack(LCLObject).SmallImages) then
|
||||
TCustomListViewHack(LCLObject).SmallImages.GetBitmap(AItem.ImageIndex, bmp)
|
||||
else
|
||||
begin
|
||||
gtk_icon_size_lookup(Ord(GTK_ICON_SIZE_LARGE_TOOLBAR), @w, @h);
|
||||
bmp.SetSize(w, h);
|
||||
|
Loading…
Reference in New Issue
Block a user