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:
parent
b76160efd2
commit
874d01fea7
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user