]> git.saurik.com Git - wxWidgets.git/commitdiff
fix mouse capture lost assert when dialog shown in tab change event handler
authorBenjamin Williams <bwilliams@kirix.com>
Sun, 3 Aug 2008 13:58:08 +0000 (13:58 +0000)
committerBenjamin Williams <bwilliams@kirix.com>
Sun, 3 Aug 2008 13:58:08 +0000 (13:58 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@54960 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/aui/auibook.h
src/aui/auibook.cpp

index 7d7bd4fc4b375afe0f85a0912a815a573ba2f668..4971c62ea1094d32d27a1e9a4cf60f504ec36238 100644 (file)
@@ -474,6 +474,7 @@ protected:
     void OnSetFocus(wxFocusEvent& event);
     void OnKillFocus(wxFocusEvent& event);
     void OnChar(wxKeyEvent& event);
+    void OnCaptureLost(wxMouseCaptureLostEvent& evt);
 
 protected:
 
index 73cea44d66f367419994084fec9416a227545134..fd2b3583e8c548f066de98cf932549960a85c46b 100644 (file)
@@ -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)