]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/wincmn.cpp
eVC4 warning fixes.
[wxWidgets.git] / src / common / wincmn.cpp
index 5e7143c74a9a7600aff72191fbee1671a89b7ebe..7a1e6e85774ce0cc5cae664560bb279b1ac936e1 100644 (file)
@@ -528,9 +528,9 @@ void wxWindowBase::Centre(int direction)
 // fits the window around the children
 void wxWindowBase::Fit()
 {
-    if ( GetChildren().GetCount() > 0 )
+    if ( !GetChildren().empty() )
     {
-        SetSize(GetBestSize());
+        SetClientSize(GetBestSize());
     }
     //else: do nothing if we have no children
 }