]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/sizer.cpp
added support for leaving out <embedded objects> that are created during their parent...
[wxWidgets.git] / src / common / sizer.cpp
index a882c510d29c075d2a673ad26a8f1fd56ecc4d6e..3643d5f54ee0a508c3ca2b134f963c590a452936 100644 (file)
@@ -985,8 +985,8 @@ void wxGridSizer::RecalcSizes()
 
 wxSize wxGridSizer::CalcMin()
 {
-    int nitems, nrows, ncols;
-    if ( (nitems = CalcRowsCols(nrows, ncols)) == 0 )
+    int nrows, ncols;
+    if ( CalcRowsCols(nrows, ncols) == 0 )
         return wxSize(10, 10);
 
     // Find the max width and height for any component