From: Julian Smart Date: Mon, 24 Mar 2003 17:21:57 +0000 (+0000) Subject: Fix by Milan Babuskov in MovePageUp X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/c5f5e891ec323ab1d578626485fb0bc30bf44cbb?ds=inline Fix by Milan Babuskov in MovePageUp git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@19754 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/generic/grid.cpp b/src/generic/grid.cpp index e4559c6849..5bdb101ff6 100644 --- a/src/generic/grid.cpp +++ b/src/generic/grid.cpp @@ -8002,7 +8002,7 @@ bool wxGrid::MovePageUp() int y = GetRowTop(row); int newRow = YToRow( y - ch + 1 ); - if ( newRow == -1 ) + if ( newRow < 0 ) { newRow = 0; }