From b256b4ef8ef5b6e8fde6df74e8076c123224dd94 Mon Sep 17 00:00:00 2001 From: Robin Dunn Date: Thu, 13 Jan 2005 23:43:19 +0000 Subject: [PATCH] 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 --- src/generic/splitter.cpp | 3 +++ 1 file changed, 3 insertions(+) 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); -- 2.50.0