X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/a9f994d915258895892228500eba5e30f04ebbdb..d728116a27b358e5b002337d96268fb51be128eb:/src/univ/menu.cpp diff --git a/src/univ/menu.cpp b/src/univ/menu.cpp index b72b959215..967fa78da4 100644 --- a/src/univ/menu.cpp +++ b/src/univ/menu.cpp @@ -2295,7 +2295,8 @@ void wxMenuBar::OnDismissMenu(bool dismissMenuBar) void wxMenuBar::OnDismiss() { - GetCapture()->ReleaseMouse(); + if ( GetCapture() ) + GetCapture()->ReleaseMouse(); if ( m_current != -1 ) {