From a7b09001af8d72c2c151ac01597965616b13b14c Mon Sep 17 00:00:00 2001 From: =?utf8?q?V=C3=A1clav=20Slav=C3=ADk?= Date: Tue, 22 Jan 2002 18:53:16 +0000 Subject: [PATCH] added safety check to wxWindow::ReleaseMouse git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@13748 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/common/wincmn.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/common/wincmn.cpp b/src/common/wincmn.cpp index c6a369eb14..2801de986d 100644 --- a/src/common/wincmn.cpp +++ b/src/common/wincmn.cpp @@ -1646,6 +1646,8 @@ void wxWindowBase::ReleaseMouse() { wxLogTrace(_T("mousecapture"), _T("ReleaseMouse(0x%08x)"), this); + wxASSERT_MSG( GetCapture() == this, wxT("attempt to release mouse, but this window hasn't captured it") ) + DoReleaseMouse(); if ( ms_winCaptureNext ) -- 2.47.2