diff --git a/src/generic/splitter.cpp b/src/generic/splitter.cpp index 7a89f4c31a..d2102d36fe 100644 --- a/src/generic/splitter.cpp +++ b/src/generic/splitter.cpp @@ -801,7 +801,7 @@ void wxSplitterWindow::SizeWindows() // Set pane for unsplit window void wxSplitterWindow::Initialize(wxWindow *window) { - wxASSERT_MSG( window && window->GetParent() == this, + wxASSERT_MSG( (!window || (window && window->GetParent() == this)), _T("windows in the splitter should have it as parent!") ); m_windowOne = window;