]> git.saurik.com Git - wxWidgets.git/commitdiff
Ensure that the windows are shown when splitting
authorRobin Dunn <robin@alldunn.com>
Thu, 13 Jan 2005 23:34:55 +0000 (23:34 +0000)
committerRobin Dunn <robin@alldunn.com>
Thu, 13 Jan 2005 23:34:55 +0000 (23:34 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31354 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/generic/splitter.cpp

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