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