]> git.saurik.com Git - wxWidgets.git/blobdiff - src/mac/carbon/menu.cpp
make sure we are comparing the stripped strings
[wxWidgets.git] / src / mac / carbon / menu.cpp
index a9da1209604419a2f739aaa562c3bbbb032789f8..949b269e00fc8339e8c1e237755bc3a224ef2f6c 100644 (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);
     }