make sure we are comparing the stripped strings
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26674 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -867,7 +867,7 @@ int wxMenuBar::FindMenuItem(const wxString& menuString,
|
|||||||
for ( size_t i = 0; i < count; i++ )
|
for ( size_t i = 0; i < count; i++ )
|
||||||
{
|
{
|
||||||
wxString title = wxStripMenuCodes(m_titles[i]);
|
wxString title = wxStripMenuCodes(m_titles[i]);
|
||||||
if ( menuString == title )
|
if ( menuLabel == title )
|
||||||
return m_menus[i]->FindItem(itemString);
|
return m_menus[i]->FindItem(itemString);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user