]> git.saurik.com Git - wxWidgets.git/blobdiff - src/univ/menu.cpp
AddBook ignores wxMac paths (still won't work)
[wxWidgets.git] / src / univ / menu.cpp
index 1d819ad0fecbf2da21dc492c360fc268efe9f980..ba08a02a6ed8257f0a1b77dfc084f5f003cb82fc 100644 (file)
@@ -2038,7 +2038,7 @@ void wxMenuBar::OnKeyDown(wxKeyEvent& event)
                 }
                 else // right
                 {
-                    if ( ++currentNew == (int)count )
+                    if ( ++currentNew == count )
                         currentNew = 0;
                 }
 
@@ -2263,7 +2263,7 @@ void wxMenuBar::OnDismissMenu(bool dismissMenuBar)
 
 void wxMenuBar::OnDismiss()
 {
-    ReleaseCapture();
+    ReleaseMouse();
 
     if ( m_current != -1 )
     {