From bec31f1919d0c41950f99b5052ee75f8a20a18a2 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sat, 5 Feb 2022 20:34:54 +0100 Subject: [PATCH] Setup bitmaps for all menu item kinds in wxGTK This doesn't change anything for now, but doesn't cost anything and might avoid problems in the future if another menu item kind is added. --- src/gtk/menu.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gtk/menu.cpp b/src/gtk/menu.cpp index 9c7439e655..1548873222 100644 --- a/src/gtk/menu.cpp +++ b/src/gtk/menu.cpp @@ -1147,7 +1147,7 @@ void wxMenu::SetupBitmaps(wxWindow *win) wxMenuItem *menuitem = node->GetData(); if (menuitem->IsSubMenu()) menuitem->GetSubMenu()->SetupBitmaps(win); - if (menuitem->GetKind() == wxITEM_NORMAL) + if (!menuitem->IsSeparator()) menuitem->SetupBitmaps(win); node = node->GetNext(); }