From 260a8505722fa33a6a4341d0f5a19117d4fe6428 Mon Sep 17 00:00:00 2001 From: Benjamin Williams Date: Thu, 14 May 2009 06:58:29 +0000 Subject: [PATCH] fix from r59107 - aui toolbar crash fixed (fixes #10371) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_9_0_BRANCH@60628 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/aui/framemanager.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/aui/framemanager.cpp b/src/aui/framemanager.cpp index 76a3081d68..62b3281b91 100644 --- a/src/aui/framemanager.cpp +++ b/src/aui/framemanager.cpp @@ -3604,6 +3604,9 @@ void wxAuiManager::OnFloatingPaneMoving(wxWindow* wnd, wxDirection dir) wxAuiPaneInfo& pane = GetPane(wnd); wxASSERT_MSG(pane.IsOk(), wxT("Pane window not found")); + if(!pane.frame) + return; + wxPoint pt = ::wxGetMousePosition(); #if 0 @@ -3704,6 +3707,9 @@ void wxAuiManager::OnFloatingPaneMoved(wxWindow* wnd, wxDirection dir) wxAuiPaneInfo& pane = GetPane(wnd); wxASSERT_MSG(pane.IsOk(), wxT("Pane window not found")); + if(!pane.frame) + return; + wxPoint pt = ::wxGetMousePosition(); #if 0