X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/1f752a2282fb36bb5e429c8c83e589b9ac66d7cb..057b55b016d9e2076fde422f29948dc55e97f0d7:/src/univ/menu.cpp diff --git a/src/univ/menu.cpp b/src/univ/menu.cpp index 1d819ad0fe..ba08a02a6e 100644 --- a/src/univ/menu.cpp +++ b/src/univ/menu.cpp @@ -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 ) {