]> git.saurik.com Git - wxWidgets.git/blobdiff - src/generic/splitter.cpp
Applied patch [ 1196679 ] wxIMPLEMENT_CLASS_COMMON2 bad parameter count compil fix.
[wxWidgets.git] / src / generic / splitter.cpp
index df06c7d5e0c8566fc7de11156aa89e5167a4ac4b..1573dd7a0481428a9469ff0a45a74d900341ceaa 100644 (file)
@@ -716,7 +716,7 @@ 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())
+    if (window && !window->IsShown())
         window->Show();
 
     m_windowOne = window;