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.
This commit is contained in:
Vadim Zeitlin
2022-02-05 20:34:54 +01:00
parent d745ff0a90
commit bec31f1919

View File

@@ -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();
}