]> git.saurik.com Git - wxWidgets.git/commitdiff
Check for NULL pane window in wxAuiManager.
authorVadim Zeitlin <vadim@wxwidgets.org>
Sat, 14 May 2011 14:18:05 +0000 (14:18 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sat, 14 May 2011 14:18:05 +0000 (14:18 +0000)
Check that the AUI pane has a non-NULL associated frame before checking
whether it's shown.

This should fix a crash which could happen when docking an undocked toolbar.

Closes #10926.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67741 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/aui/framemanager.cpp

index db454f2bc375716a2101a0aa55180f96e1618e0a..021cecd9a9e5858a42a492ec5d5801bd43565b17 100644 (file)
@@ -3346,7 +3346,8 @@ void wxAuiManager::ShowHint(const wxRect& rect)
             wxAuiPaneInfo& pane = m_panes.Item(i);
 
             if (pane.IsFloating() &&
-                pane.frame->IsShown())
+                    pane.frame &&
+                        pane.frame->IsShown())
             {
                 wxRect rect = pane.frame->GetRect();
 #ifdef __WXGTK__