]> git.saurik.com Git - wxWidgets.git/blobdiff - src/univ/menu.cpp
make --static flag act on --cppflags too.
[wxWidgets.git] / src / univ / menu.cpp
index 586b829b2d23e7b4eae87a819a4c41e3905ce116..967fa78da4a3594b87cde7a99c2852c813f53989 100644 (file)
@@ -2295,7 +2295,8 @@ void wxMenuBar::OnDismissMenu(bool dismissMenuBar)
 
 void wxMenuBar::OnDismiss()
 {
-    ReleaseMouse();
+    if ( GetCapture() )
+        GetCapture()->ReleaseMouse();
 
     if ( m_current != -1 )
     {