X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/9ec0e7da983d3c4de9c7007142a72864214514ac..2b199a38dccae76ad59f747dd7ef6fcfc680c089:/src/generic/splitter.cpp diff --git a/src/generic/splitter.cpp b/src/generic/splitter.cpp index df06c7d5e0..1573dd7a04 100644 --- a/src/generic/splitter.cpp +++ b/src/generic/splitter.cpp @@ -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;