From: Julian Smart Date: Mon, 7 Dec 2009 15:23:09 +0000 (+0000) Subject: Don't crash if no document X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/d3785012e5b69857c38fea7188b27f576700bf81 Don't crash if no document git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62809 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/common/docview.cpp b/src/common/docview.cpp index f0ed6c59bf..6e1ef4c162 100644 --- a/src/common/docview.cpp +++ b/src/common/docview.cpp @@ -651,7 +651,7 @@ wxView::wxView() wxView::~wxView() { - if (GetDocumentManager()) + if (m_viewDocument && GetDocumentManager()) GetDocumentManager()->ActivateView(this, false); // reset our frame view first, before removing it from the document as