]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/sizer.cpp
Halfway reasonable implementation of wxFont for wxCocoa.
[wxWidgets.git] / src / common / sizer.cpp
index ed30da1d39f2bc6cb14791022fcfd1f0f0a623b5..9dde5b581bca5b6f89a6bd667bdf4bb1f6d46e97 100644 (file)
@@ -1376,8 +1376,8 @@ wxFlexGridSizer::~wxFlexGridSizer()
 
 void wxFlexGridSizer::RecalcSizes()
 {
-    int nitems, nrows, ncols;
-    if ( (nitems = CalcRowsCols(nrows, ncols)) == 0 )
+    int nrows, ncols;
+    if ( !CalcRowsCols(nrows, ncols) )
         return;
 
     const wxPoint pt(GetPosition());