Fixed an assert when assigning a bitmap to radio menu item
This commit is contained in:
parent
d67ceea568
commit
463e944113
|
@ -193,9 +193,11 @@ 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,9 +228,11 @@ 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 );
|
||||
|
||||
|
|
Loading…
Reference in New Issue