diff options
-rw-r--r-- | vcl/unx/gtk/gtksalmenu.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/vcl/unx/gtk/gtksalmenu.cxx b/vcl/unx/gtk/gtksalmenu.cxx index 48520c28d052..204415564b96 100644 --- a/vcl/unx/gtk/gtksalmenu.cxx +++ b/vcl/unx/gtk/gtksalmenu.cxx @@ -848,7 +848,7 @@ bool GtkSalMenu::NativeSetItemCommand( unsigned nSection, if ( aCurrentCommand == nullptr || g_strcmp0( aCurrentCommand, aCommand ) != 0 ) { bool bOldHasSubmenu = g_lo_menu_get_submenu_from_item_in_section(pMenu, nSection, nItemPos) != nullptr; - bSubMenuAddedOrRemoved = bOldHasSubmenu != bIsSubmenu; + bSubMenuAddedOrRemoved = static_cast<gboolean>(bOldHasSubmenu) != bIsSubmenu; if (bSubMenuAddedOrRemoved) { //tdf#98636 its not good enough to unset the "submenu-action" attribute to change something |