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:
Vadim Zeitlin
2005-06-17 21:46:20 +00:00
parent 0a936028d4
commit f166217789

View File

@@ -440,7 +440,8 @@ bool wxSizerItem::IsShown() const
switch ( m_kind ) switch ( m_kind )
{ {
case Item_None: 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; break;
case Item_Window: case Item_Window: