don't assert if kind == Item_None in wxSizerItem::IsShown(), this can happen during windows destruction (bug 1216428)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@34700 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -440,7 +440,8 @@ bool wxSizerItem::IsShown() const
|
||||
switch ( m_kind )
|
||||
{
|
||||
case Item_None:
|
||||
wxFAIL_MSG( _T("uninitialized sizer item") );
|
||||
// we may be called from CalcMin(), just return false so that we're
|
||||
// not used
|
||||
break;
|
||||
|
||||
case Item_Window:
|
||||
|
Reference in New Issue
Block a user