From: Benjamin Williams Date: Sun, 3 Aug 2008 13:58:08 +0000 (+0000) Subject: fix mouse capture lost assert when dialog shown in tab change event handler X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/45ca0e7750ac8d826ed90d53f066729847e2d73b fix mouse capture lost assert when dialog shown in tab change event handler git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@54960 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/include/wx/aui/auibook.h b/include/wx/aui/auibook.h index 7d7bd4fc4b..4971c62ea1 100644 --- a/include/wx/aui/auibook.h +++ b/include/wx/aui/auibook.h @@ -474,6 +474,7 @@ protected: void OnSetFocus(wxFocusEvent& event); void OnKillFocus(wxFocusEvent& event); void OnChar(wxKeyEvent& event); + void OnCaptureLost(wxMouseCaptureLostEvent& evt); protected: diff --git a/src/aui/auibook.cpp b/src/aui/auibook.cpp index 73cea44d66..fd2b3583e8 100644 --- a/src/aui/auibook.cpp +++ b/src/aui/auibook.cpp @@ -2191,6 +2191,7 @@ BEGIN_EVENT_TABLE(wxAuiTabCtrl, wxControl) EVT_SET_FOCUS(wxAuiTabCtrl::OnSetFocus) EVT_KILL_FOCUS(wxAuiTabCtrl::OnKillFocus) EVT_CHAR(wxAuiTabCtrl::OnChar) + EVT_MOUSE_CAPTURE_LOST(wxAuiTabCtrl::OnCaptureLost) END_EVENT_TABLE() @@ -2273,6 +2274,10 @@ void wxAuiTabCtrl::OnLeftDown(wxMouseEvent& evt) } } +void wxAuiTabCtrl::OnCaptureLost(wxMouseCaptureLostEvent& WXUNUSED(event)) +{ +} + void wxAuiTabCtrl::OnLeftUp(wxMouseEvent& evt) { if (GetCapture() == this)