Ensure child is frozen before trying to thaw it, to avoid assert.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@50680 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -1562,7 +1562,12 @@ void wxWindowMSW::Thaw()
|
||||
if ( child->IsTopLevel() )
|
||||
continue;
|
||||
else
|
||||
child->Thaw();
|
||||
{
|
||||
// in case the child was added while the TLW was
|
||||
// frozen, it won't be frozen now so avoid the Thaw.
|
||||
if ( child->IsFrozen() )
|
||||
child->Thaw();
|
||||
}
|
||||
}
|
||||
}
|
||||
else // This is not a TLW, so just thaw it.
|
||||
|
Reference in New Issue
Block a user