From f166217789093525896625609b3f8e7c9f8b33cc Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Fri, 17 Jun 2005 21:46:20 +0000 Subject: [PATCH] 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 --- src/common/sizer.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/common/sizer.cpp b/src/common/sizer.cpp index 85be8ac524..0ef04619c6 100644 --- a/src/common/sizer.cpp +++ b/src/common/sizer.cpp @@ -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: -- 2.45.2