]> git.saurik.com Git - wxWidgets.git/commitdiff
fixed crasher (part 2)
authorBenjamin Williams <bwilliams@kirix.com>
Wed, 8 Nov 2006 05:39:59 +0000 (05:39 +0000)
committerBenjamin Williams <bwilliams@kirix.com>
Wed, 8 Nov 2006 05:39:59 +0000 (05:39 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@43184 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/aui/framemanager.cpp

index 0ebfccaf038084e54fcc727b0cd5465b7ef25348..18453eb82958e0fc52272e1d3da0feb20b56dcb3 100644 (file)
@@ -3537,7 +3537,7 @@ void wxAuiManager::UpdateButtonOnScreen(wxAuiDockUIPart* button_ui_part,
                                         const wxMouseEvent& event)
 {
     wxAuiDockUIPart* hit_test = HitTest(event.GetX(), event.GetY());
-    if (!hit_test)
+    if (!hit_test || !button_ui_part)
         return;
         
     int state = wxAUI_BUTTON_STATE_NORMAL;