From: Julian Smart Date: Mon, 7 Feb 2005 20:16:53 +0000 (+0000) Subject: Don't release capture unless we already have it. X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/1c7415463da1c90149a9bed4fd77f85aa9140def Don't release capture unless we already have it. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31826 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/common/popupcmn.cpp b/src/common/popupcmn.cpp index 0c94b3838d..c1961f1973 100644 --- a/src/common/popupcmn.cpp +++ b/src/common/popupcmn.cpp @@ -198,7 +198,8 @@ void wxPopupTransientWindow::PopHandlers() m_handlerPopup = NULL; } - m_child->ReleaseMouse(); + if (m_child->HasCapture()) + m_child->ReleaseMouse(); m_child = NULL; }