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:
Robin Dunn
2007-12-13 20:49:34 +00:00
parent 6d7fdd21e4
commit fcc7e7595b

View File

@@ -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.