From c5f5e891ec323ab1d578626485fb0bc30bf44cbb Mon Sep 17 00:00:00 2001 From: Julian Smart Date: Mon, 24 Mar 2003 17:21:57 +0000 Subject: [PATCH] Fix by Milan Babuskov in MovePageUp git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@19754 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/generic/grid.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- 2.50.0