From 1c7415463da1c90149a9bed4fd77f85aa9140def Mon Sep 17 00:00:00 2001 From: Julian Smart Date: Mon, 7 Feb 2005 20:16:53 +0000 Subject: [PATCH] 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 --- src/common/popupcmn.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; } -- 2.50.0