Don't set icons for check and radio menu items as checked icons aren't supported yet

Originally committed to SVN as r5807.
This commit is contained in:
Thomas Goyne 2011-11-03 00:29:23 +00:00
parent 6a31f840a6
commit 2cbe7455bb
1 changed files with 2 additions and 1 deletions

View File

@ -184,7 +184,8 @@ public:
wxMenuItem *item = new wxMenuItem(parent, MENU_ID_BASE + items.size(), menu_text, co->StrHelp(), kind);
#ifndef __WXMAC__
/// @todo Maybe make this a configuration option instead?
item->SetBitmap(co->Icon(16));
if (kind == wxITEM_NORMAL)
item->SetBitmap(co->Icon(16));
#endif
parent->Append(item);
items.push_back(co);