]> git.saurik.com Git - wxWidgets.git/commitdiff
don't assert if kind == Item_None in wxSizerItem::IsShown(), this can happen during...
authorVadim Zeitlin <vadim@wxwidgets.org>
Fri, 17 Jun 2005 21:46:20 +0000 (21:46 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Fri, 17 Jun 2005 21:46:20 +0000 (21:46 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@34700 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/common/sizer.cpp

index 85be8ac5249c10beaa6a66b9dd85fd0bcf9c067f..0ef04619c6d76757e5f98f6fea06367a81c1f58d 100644 (file)
@@ -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: