Don't set bitmaps on non-normal menu items under wxGTK
Fixes: lp:1829780 * https://bugs.launchpad.net/kicad/+bug/1829780
This commit is contained in:
parent
1401d8a8ea
commit
95a6fb6ea3
|
@ -82,9 +82,13 @@ void CONDITIONAL_MENU::AddCheckItem( int aId, const wxString& aText, const wxStr
|
|||
{
|
||||
wxMenuItem* item = new wxMenuItem( nullptr, aId, aText, aTooltip, wxITEM_CHECK );
|
||||
|
||||
#if !defined(__WXGTK__) // wxGTK does not support bitmaps on checkable menu items
|
||||
|
||||
if( aIcon )
|
||||
item->SetBitmap( KiBitmap( aIcon ) );
|
||||
|
||||
#endif
|
||||
|
||||
addEntry( ENTRY( item, aCondition, aOrder, true ) );
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue