LCL-GTK2: Initialize a variable in widgetset code. Issue #31607, patch from Anton Kavalenka.

git-svn-id: trunk@54504 -
This commit is contained in:
juha 2017-04-01 06:33:57 +00:00
parent 75e8f692bd
commit 6987a37b7c

View File

@ -5959,7 +5959,6 @@ var
begin
// the icon will be painted instead of the toggle
// of a normal gtkcheckmenuitem
if LCLMenuItem.HasIcon then
begin
GTK_MENU_ITEM(MenuItemWidget)^.flag0:=
@ -5970,6 +5969,8 @@ var
if OldCheckMenuItemDrawProc = nil then
OldCheckMenuItemDrawProc := CHECK_MENU_ITEM_CLASS(MenuItemWidget)^.draw_indicator;
CHECK_MENU_ITEM_CLASS(MenuItemWidget)^.draw_indicator := @DrawMenuItemIcon;
MinHeightWidget := MenuItemWidget;
end
else
MinHeightWidget := nil;