]> git.saurik.com Git - wxWidgets.git/blobdiff - src/mac/carbon/menu.cpp
wxASSERT_MSG instead of wxASSERT
[wxWidgets.git] / src / mac / carbon / menu.cpp
index 95a5f76ec217c2b901b40212764278f414ce574a..949b269e00fc8339e8c1e237755bc3a224ef2f6c 100644 (file)
@@ -619,7 +619,7 @@ void wxMenuBar::EnableTop(size_t pos, bool enable)
 
 bool wxMenuBar::Enable( bool enable)
 {
-    wxCHECK_RET( IsAttached(), wxT("doesn't work with unattached menubars") );
+    wxCHECK_MSG( IsAttached(), false, wxT("doesn't work with unattached menubars") );
     size_t i;
     for (i = 0; i < GetMenuCount(); i++)
     {
@@ -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);
     }