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:
Stefan Csomor 2004-04-08 12:24:41 +00:00
parent e27ebad0bd
commit ef08980525

View File

@ -867,7 +867,7 @@ int wxMenuBar::FindMenuItem(const wxString& menuString,
for ( size_t i = 0; i < count; i++ )
{
wxString title = wxStripMenuCodes(m_titles[i]);
if ( menuString == title )
if ( menuLabel == title )
return m_menus[i]->FindItem(itemString);
}