LCL: menu item: don't store bitmap if ImageIndex is assigned

git-svn-id: trunk@57243 -
This commit is contained in:
ondrej 2018-02-04 00:28:49 +00:00
parent 5ed8447065
commit 2801ad9f1c

View File

@ -561,7 +561,8 @@ begin
else Result :=
FBitmapIsValid and
(FBitmap <> nil) and (not FBitmap.Empty) and
(FBitmap.Width > 0) and (FBitmap.Height > 0);
(FBitmap.Width > 0) and (FBitmap.Height > 0) and
(ImageIndex < 0);
end;
{------------------------------------------------------------------------------