]> git.saurik.com Git - wxWidgets.git/commitdiff
Fix by Milan Babuskov <albis@eunet.yu> in MovePageUp
authorJulian Smart <julian@anthemion.co.uk>
Mon, 24 Mar 2003 17:21:57 +0000 (17:21 +0000)
committerJulian Smart <julian@anthemion.co.uk>
Mon, 24 Mar 2003 17:21:57 +0000 (17:21 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@19754 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/generic/grid.cpp

index e4559c68495211224ccb607621dc8c4a879bb0df..5bdb101ff63b5fa12df9f3e7d9dca78ed8fa239e 100644 (file)
@@ -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;
         }