Ensure that the windows are shown when splitting

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31354 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn 2005-01-13 23:34:55 +00:00
parent b76160efd2
commit 874d01fea7

View File

@ -730,6 +730,11 @@ bool wxSplitterWindow::DoSplit(wxSplitMode mode,
wxCHECK_MSG( window1->GetParent() == this && window2->GetParent() == this, false, wxCHECK_MSG( window1->GetParent() == this && window2->GetParent() == this, false,
_T("windows in the splitter should have it as parent!") ); _T("windows in the splitter should have it as parent!") );
if (! window1->IsShown())
window1->Show();
if (! window2->IsShown())
window2->Show();
m_splitMode = mode; m_splitMode = mode;
m_windowOne = window1; m_windowOne = window1;
m_windowTwo = window2; m_windowTwo = window2;