From fb8c131d10c4acb0d3ac6bbd557c991fcad9b1b3 Mon Sep 17 00:00:00 2001 From: Mart Raudsepp Date: Fri, 28 Dec 2007 07:16:38 +0000 Subject: [PATCH] Workaround an assert that leads up to causing a crash on the next time anything tries to CaptureMouse git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@50934 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- contrib/src/fl/controlbar.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/contrib/src/fl/controlbar.cpp b/contrib/src/fl/controlbar.cpp index 4023c60b19..5e2ce57012 100644 --- a/contrib/src/fl/controlbar.cpp +++ b/contrib/src/fl/controlbar.cpp @@ -726,6 +726,10 @@ void wxFrameLayout::SetBarState( cbBarInfo* pBar, int newState, bool updateNow ) mFloatedFrames.Erase( pNode ); pFFrm->Show( false ); + + // Workaround assert that causes a crash on the next time something tries to CaptureMouse + if (pFFrm->HasCapture()) pFFrm->ReleaseMouse(); + pFFrm->Destroy(); break; }