Allow Initialize(NULL)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33148 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -716,7 +716,7 @@ void wxSplitterWindow::Initialize(wxWindow *window)
|
|||||||
wxASSERT_MSG( (!window || (window && window->GetParent() == this)),
|
wxASSERT_MSG( (!window || (window && window->GetParent() == this)),
|
||||||
_T("windows in the splitter should have it as parent!") );
|
_T("windows in the splitter should have it as parent!") );
|
||||||
|
|
||||||
if (! window->IsShown())
|
if (window && !window->IsShown())
|
||||||
window->Show();
|
window->Show();
|
||||||
|
|
||||||
m_windowOne = window;
|
m_windowOne = window;
|
||||||
|
Reference in New Issue
Block a user