fix crash with repeated split horizontal/vertical and replace window, #11002

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@61458 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Paul Cornett
2009-07-18 22:46:26 +00:00
parent 8a6a7954c5
commit 3756f0ee8f

View File

@@ -283,6 +283,7 @@ void MyFrame::SplitHorizontal(wxCommandEvent& WXUNUSED(event) )
m_left->Show(true);
m_right->Show(true);
m_splitter->SplitHorizontally( m_left, m_right );
m_replacewindow = NULL;
#if wxUSE_STATUSBAR
SetStatusText(_T("Splitter split horizontally"), 1);
@@ -296,6 +297,7 @@ void MyFrame::SplitVertical(wxCommandEvent& WXUNUSED(event) )
m_left->Show(true);
m_right->Show(true);
m_splitter->SplitVertically( m_left, m_right );
m_replacewindow = NULL;
#if wxUSE_STATUSBAR
SetStatusText(_T("Splitter split vertically"), 1);