mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-03 11:20:23 +02:00
gtk2: menuitem: draw custom Bitmap even if ImageList is assigned. Issue #32918, patch from C Western
git-svn-id: trunk@56905 -
This commit is contained in:
parent
f8d6369f36
commit
898dfa1617
@ -5795,7 +5795,7 @@ begin
|
||||
|
||||
// draw icon
|
||||
AImageList := LCLMenuItem.GetImageList;
|
||||
if AImageList = nil then
|
||||
if (AImageList = nil) or (LCLMenuItem.ImageIndex < 0) then
|
||||
begin
|
||||
AImageList := TImageList.Create(nil);
|
||||
// prevent multiple calls to GetBitmap;
|
||||
|
Loading…
Reference in New Issue
Block a user