From cfbf62b8112a6c7dd21c1a60ca4218d7b208f5a9 Mon Sep 17 00:00:00 2001 From: Bryan Petty Date: Mon, 16 Nov 2009 21:55:57 +0000 Subject: [PATCH] Fix crash when dragging toolbars in wxAuiManager::OnFloatingPaneMoveStart(). (fixes #10170) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62669 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/aui/framemanager.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/aui/framemanager.cpp b/src/aui/framemanager.cpp index 940ecfdad4..0437d90c79 100644 --- a/src/aui/framemanager.cpp +++ b/src/aui/framemanager.cpp @@ -3589,6 +3589,9 @@ void wxAuiManager::OnFloatingPaneMoveStart(wxWindow* wnd) wxAuiPaneInfo& pane = GetPane(wnd); wxASSERT_MSG(pane.IsOk(), wxT("Pane window not found")); + if(!pane.frame) + return; + if (m_flags & wxAUI_MGR_TRANSPARENT_DRAG) pane.frame->SetTransparent(150); } -- 2.45.2