From a93d5af8467d05e5dd3705c1efd47fd7bcaa5e77 Mon Sep 17 00:00:00 2001 From: Benjamin Williams Date: Wed, 8 Nov 2006 05:39:59 +0000 Subject: [PATCH] fixed crasher (part 2) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@43184 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/aui/framemanager.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/aui/framemanager.cpp b/src/aui/framemanager.cpp index 0ebfccaf03..18453eb829 100644 --- a/src/aui/framemanager.cpp +++ b/src/aui/framemanager.cpp @@ -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; -- 2.45.2