X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/fb48a5f86523651d6de44e8b01ab524ca97db072..40e5ebbf98728d627e4d3c9e3a57f28f5bb8fcb9:/src/aui/framemanager.cpp diff --git a/src/aui/framemanager.cpp b/src/aui/framemanager.cpp index fb40bea51d..5ae4d181a1 100644 --- a/src/aui/framemanager.cpp +++ b/src/aui/framemanager.cpp @@ -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__