Applied patch [ 1776951 ] wxSizer::GetContainingWindow fails for nested sizers
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@48290 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -522,6 +522,9 @@ wxSizerItem* wxSizer::Insert( size_t index, wxSizerItem *item )
|
||||
if ( item->GetWindow() )
|
||||
item->GetWindow()->SetContainingSizer( this );
|
||||
|
||||
if ( item->GetSizer() )
|
||||
item->GetSizer()->SetContainingWindow( m_containingWindow );
|
||||
|
||||
return item;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user