]> git.saurik.com Git - wxWidgets.git/blobdiff - src/generic/grid.cpp
Fixed a compiler performance warning
[wxWidgets.git] / src / generic / grid.cpp
index 5d70eacf514ab8e40e7b79b736efd3540068c2ad..d653d727ee7c86f00e168c01a113ceaf55514f75 100644 (file)
@@ -3718,7 +3718,7 @@ void wxGrid::CalcDimensions()
 
     // do set scrollbar parameters
     SetScrollbars( GRID_SCROLL_LINE, GRID_SCROLL_LINE,
-                  w, h, x, y, GetBatchCount() );
+                  w, h, x, y, (GetBatchCount() != 0));
 }