From 9fe6f6c258902a474b5e47ba83e8c66a9e6334a3 Mon Sep 17 00:00:00 2001 From: Julian Smart Date: Sat, 3 May 2003 15:17:38 +0000 Subject: [PATCH] Applied patch [ 726350 ] wxGrid - MovePageDown() git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@20457 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/generic/grid.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/generic/grid.cpp b/src/generic/grid.cpp index adf9760d24..905c4dd475 100644 --- a/src/generic/grid.cpp +++ b/src/generic/grid.cpp @@ -7920,7 +7920,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 ); @@ -7930,7 +7930,7 @@ bool wxGrid::MovePageDown() if ( newRow == row ) { // row < m_numRows , so newrow can't overflow here. - newRow = row + 1; + newRow = row + 1; } MakeCellVisible( newRow, m_currentCellCoords.GetCol() );