From: George Tasker Date: Tue, 17 Apr 2001 11:05:24 +0000 (+0000) Subject: Fixed a compiler performance warning X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/389b961e233282ce7829107826ed92e314935366?ds=inline Fixed a compiler performance warning git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@9778 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- 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)); }