mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-30 15:10:16 +02:00
LCL-GTK2: Initialize a variable in widgetset code. Issue #31607, patch from Anton Kavalenka.
git-svn-id: trunk@54504 -
This commit is contained in:
parent
75e8f692bd
commit
6987a37b7c
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user