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:
@@ -283,6 +283,7 @@ void MyFrame::SplitHorizontal(wxCommandEvent& WXUNUSED(event) )
|
|||||||
m_left->Show(true);
|
m_left->Show(true);
|
||||||
m_right->Show(true);
|
m_right->Show(true);
|
||||||
m_splitter->SplitHorizontally( m_left, m_right );
|
m_splitter->SplitHorizontally( m_left, m_right );
|
||||||
|
m_replacewindow = NULL;
|
||||||
|
|
||||||
#if wxUSE_STATUSBAR
|
#if wxUSE_STATUSBAR
|
||||||
SetStatusText(_T("Splitter split horizontally"), 1);
|
SetStatusText(_T("Splitter split horizontally"), 1);
|
||||||
@@ -296,6 +297,7 @@ void MyFrame::SplitVertical(wxCommandEvent& WXUNUSED(event) )
|
|||||||
m_left->Show(true);
|
m_left->Show(true);
|
||||||
m_right->Show(true);
|
m_right->Show(true);
|
||||||
m_splitter->SplitVertically( m_left, m_right );
|
m_splitter->SplitVertically( m_left, m_right );
|
||||||
|
m_replacewindow = NULL;
|
||||||
|
|
||||||
#if wxUSE_STATUSBAR
|
#if wxUSE_STATUSBAR
|
||||||
SetStatusText(_T("Splitter split vertically"), 1);
|
SetStatusText(_T("Splitter split vertically"), 1);
|
||||||
|
Reference in New Issue
Block a user