]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/docview.cpp
No real changes, just fix a typo in comments and documentation.
[wxWidgets.git] / src / common / docview.cpp
index f0ed6c59bf24dee3c61199498e7e07ca51196c6e..6e1ef4c162a87ba5abb2062a4ec9ba1c0fcf1cd3 100644 (file)
@@ -651,7 +651,7 @@ wxView::wxView()
 
 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
         GetDocumentManager()->ActivateView(this, false);
 
     // reset our frame view first, before removing it from the document as