minor fix

This commit is contained in:
jean-pierre charras 2017-10-23 19:11:32 +02:00
parent eb2340bc23
commit 788972554b
1 changed files with 7 additions and 12 deletions

View File

@ -60,6 +60,7 @@ CONTEXT_MENU::~CONTEXT_MENU()
*/
static void set_wxMenuIcon( wxMenuItem* aMenu, const BITMAP_OPAQUE* aIcon )
{
// Retrieve the global applicaton show icon option:
bool useImagesInMenus = Pgm().GetUseIconsInMenus();
if( aIcon && useImagesInMenus )
@ -71,13 +72,7 @@ static void set_wxMenuIcon( wxMenuItem* aMenu, const BITMAP_OPAQUE* aIcon )
void CONTEXT_MENU::SetIcon( const BITMAP_OPAQUE* aIcon )
{
// Retrieve the global applicaton show icon option:
bool useImagesInMenus = Pgm().GetUseIconsInMenus();
if( useImagesInMenus )
m_icon = aIcon;
else
m_icon = nullptr;
}