]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/wincmn.cpp
added safety check to wxWindow::ReleaseMouse
[wxWidgets.git] / src / common / wincmn.cpp
index c6a369eb14aa158cfe15372e16c6d3ea98dd8e09..2801de986d8701fd34a32cee7fded582e7f4beff 100644 (file)
@@ -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 )