Fixed an assert when assigning a bitmap to radio menu item

This commit is contained in:
Maciej Suminski 2018-02-19 08:44:09 +01:00
parent d67ceea568
commit 463e944113
1 changed files with 6 additions and 2 deletions

View File

@ -193,8 +193,10 @@ wxMenuItem* AddMenuItem( wxMenu* aMenu, int aId, const wxString& aText,
item->SetFont( *wxNORMAL_FONT );
#endif
}
else
else if( aType != wxITEM_RADIO )
{
item->SetBitmap( aImage );
}
}
aMenu->Append( item );
@ -226,8 +228,10 @@ wxMenuItem* AddMenuItem( wxMenu* aMenu, int aId, const wxString& aText,
item->SetFont( *wxNORMAL_FONT );
#endif
}
else
else if( aType != wxITEM_RADIO )
{
item->SetBitmap( aImage );
}
}
aMenu->Append( item );