]> git.saurik.com Git - wxWidgets.git/blobdiff - src/univ/menu.cpp
more MSDOS fixes (config file location)
[wxWidgets.git] / src / univ / menu.cpp
index b72b959215b10230476b8bba069826ae178968e1..967fa78da4a3594b87cde7a99c2852c813f53989 100644 (file)
@@ -2295,7 +2295,8 @@ void wxMenuBar::OnDismissMenu(bool dismissMenuBar)
 
 void wxMenuBar::OnDismiss()
 {
-    GetCapture()->ReleaseMouse();
+    if ( GetCapture() )
+        GetCapture()->ReleaseMouse();
 
     if ( m_current != -1 )
     {