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

src/generic/splitter.cpp

index 51d715bdb91d27e920e5c99719ee2506bf480631..54e664c2adc5ebffc7f9ae12910e0fbee7d774f2 100644 (file)
@@ -709,6 +709,9 @@ void wxSplitterWindow::Initialize(wxWindow *window)
     wxASSERT_MSG( (!window || (window && window->GetParent() == this)),
                   _T("windows in the splitter should have it as parent!") );
 
+    if (! window->IsShown())
+        window->Show();
+    
     m_windowOne = window;
     m_windowTwo = (wxWindow *) NULL;
     DoSetSashPosition(0);