From d3785012e5b69857c38fea7188b27f576700bf81 Mon Sep 17 00:00:00 2001 From: Julian Smart Date: Mon, 7 Dec 2009 15:23:09 +0000 Subject: [PATCH] Don't crash if no document git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62809 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/common/docview.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.49.0