]> git.saurik.com Git - wxWidgets.git/blobdiff - src/aui/framemanager.cpp
Upport scrolling changes and mouse wheel changes.
[wxWidgets.git] / 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__