applied patch 431596 (fixes some crashes in wxDocView classes)

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10479 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin 2001-06-09 17:51:20 +00:00
parent ef2992354c
commit 0d8737fdcc
2 changed files with 2 additions and 0 deletions

View File

@ -75,6 +75,7 @@ class WXDLLEXPORT wxDocMDIChildFrame: public wxMDIChildFrame
inline wxView *GetView(void) const { return m_childView; } inline wxView *GetView(void) const { return m_childView; }
inline void SetDocument(wxDocument *doc) { m_childDocument = doc; } inline void SetDocument(wxDocument *doc) { m_childDocument = doc; }
inline void SetView(wxView *view) { m_childView = view; } inline void SetView(wxView *view) { m_childView = view; }
bool Destroy() { m_childView = (wxView *)NULL; return wxFrame::Destroy(); }
protected: protected:
wxDocument* m_childDocument; wxDocument* m_childDocument;
wxView* m_childView; wxView* m_childView;

View File

@ -450,6 +450,7 @@ public:
wxView *GetView() const { return m_childView; } wxView *GetView() const { return m_childView; }
void SetDocument(wxDocument *doc) { m_childDocument = doc; } void SetDocument(wxDocument *doc) { m_childDocument = doc; }
void SetView(wxView *view) { m_childView = view; } void SetView(wxView *view) { m_childView = view; }
bool Destroy() { m_childView = (wxView *)NULL; return wxFrame::Destroy(); }
protected: protected:
wxDocument* m_childDocument; wxDocument* m_childDocument;