From: Robin Dunn Date: Thu, 13 Jan 2005 23:43:19 +0000 (+0000) Subject: Ensure that the windows are shown when Initialize is called too X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/b256b4ef8ef5b6e8fde6df74e8076c123224dd94 Ensure that the windows are shown when Initialize is called too git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31355 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/generic/splitter.cpp b/src/generic/splitter.cpp index 51d715bdb9..54e664c2ad 100644 --- a/src/generic/splitter.cpp +++ b/src/generic/splitter.cpp @@ -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);