]> git.saurik.com Git - wxWidgets.git/blobdiff - src/univ/menu.cpp
Converting uninitialized data is not a Good Idea
[wxWidgets.git] / src / univ / menu.cpp
index 586b829b2d23e7b4eae87a819a4c41e3905ce116..967fa78da4a3594b87cde7a99c2852c813f53989 100644 (file)
@@ -2295,7 +2295,8 @@ void wxMenuBar::OnDismissMenu(bool dismissMenuBar)
 
 void wxMenuBar::OnDismiss()
 {
 
 void wxMenuBar::OnDismiss()
 {
-    ReleaseMouse();
+    if ( GetCapture() )
+        GetCapture()->ReleaseMouse();
 
     if ( m_current != -1 )
     {
 
     if ( m_current != -1 )
     {