]> git.saurik.com Git - wxWidgets.git/commitdiff
Don't release capture unless we already have it.
authorJulian Smart <julian@anthemion.co.uk>
Mon, 7 Feb 2005 20:16:53 +0000 (20:16 +0000)
committerJulian Smart <julian@anthemion.co.uk>
Mon, 7 Feb 2005 20:16:53 +0000 (20:16 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31826 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/common/popupcmn.cpp

index 0c94b3838d6197bfdda31076aa0599e2119fe7d0..c1961f1973b2c7fcc9f370d64e2fa0fed2293b69 100644 (file)
@@ -198,7 +198,8 @@ void wxPopupTransientWindow::PopHandlers()
             m_handlerPopup = NULL;
         }
 
-        m_child->ReleaseMouse();
+        if (m_child->HasCapture())
+            m_child->ReleaseMouse();
         m_child = NULL;
     }