diff --git a/src/generic/grid.cpp b/src/generic/grid.cpp index 5d70eacf51..d653d727ee 100644 --- a/src/generic/grid.cpp +++ b/src/generic/grid.cpp @@ -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)); }