Allow wxSplitterWindow::Initialize(NULL) in case we've deleted both child
windows and want to clean up dangling pointers git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@27852 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user