]> git.saurik.com Git - wxWidgets.git/commitdiff
[ 1712381 ] CRASH: closing floating panel on GTK
authorRobert Roebling <robert@roebling.de>
Tue, 22 May 2007 07:55:39 +0000 (07:55 +0000)
committerRobert Roebling <robert@roebling.de>
Tue, 22 May 2007 07:55:39 +0000 (07:55 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@46168 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/aui/framemanager.cpp

index fb40bea51d32a989046785758f630fc870346c67..5ae4d181a1124849472bbba23bd3ad6343aed0e8 100644 (file)
@@ -3540,6 +3540,10 @@ void wxAuiManager::OnFloatingPaneActivated(wxWindow* wnd)
 
 void wxAuiManager::OnRender(wxAuiManagerEvent& evt)
 {
+    // if the frame is about to be deleted, don't bother
+    if (!m_frame || wxPendingDelete.Member(m_frame))
+           return;
+        
     wxDC* dc = evt.GetDC();
 
 #ifdef __WXMAC__