]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/sizer.cpp
Added Cocoa_canBecomeKeyWindow.
[wxWidgets.git] / src / common / sizer.cpp
index 85be8ac5249c10beaa6a66b9dd85fd0bcf9c067f..83aa3483aa21f742240539ffdc556a5d89482422 100644 (file)
 // Licence:     wxWindows licence
 /////////////////////////////////////////////////////////////////////////////
 
-#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
-#pragma implementation "sizer.h"
-#endif
-
 // For compilers that support precompilation, includes "wx.h".
 #include "wx/wxprec.h"
 
@@ -440,7 +436,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: