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:
ondrej 2018-01-01 19:40:05 +00:00
parent f8d6369f36
commit 898dfa1617

View File

@ -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;