git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59484
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
view->SetDocChildFrame(this);
}
+ ~wxDocChildFrameAnyBase()
+ {
+ // prevent the view from deleting us if we're being deleted directly
+ // (and not via Close() + Destroy())
+ if ( m_childView )
+ m_childView->SetDocChildFrame(NULL);
+ }
+
wxDocument *GetDocument() const { return m_childDocument; }
wxView *GetView() const { return m_childView; }
void SetDocument(wxDocument *doc) { m_childDocument = doc; }