]> git.saurik.com Git - wxWidgets.git/commitdiff
Applied patch [ 726350 ] wxGrid - MovePageDown()
authorJulian Smart <julian@anthemion.co.uk>
Sat, 3 May 2003 15:17:38 +0000 (15:17 +0000)
committerJulian Smart <julian@anthemion.co.uk>
Sat, 3 May 2003 15:17:38 +0000 (15:17 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@20457 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/generic/grid.cpp

index d0d1412abf771bac13c82e8eedf3b5249b08af38..df8ef76582f4b1a495121a47a0993c0e8aeb41d3 100644 (file)
@@ -8030,7 +8030,7 @@ bool wxGrid::MovePageDown()
     if ( m_currentCellCoords == wxGridNoCellCoords ) return FALSE;
 
     int row = m_currentCellCoords.GetRow();
-    if ( row < m_numRows )
+    if ( (row+1) < m_numRows )
     {
         int cw, ch;
         m_gridWin->GetClientSize( &cw, &ch );