diff --git a/src/generic/grid.cpp b/src/generic/grid.cpp index 58146530df..a6293a9b0d 100644 --- a/src/generic/grid.cpp +++ b/src/generic/grid.cpp @@ -3460,7 +3460,7 @@ bool wxGrid::Redimension( wxGridTableMessage& msg ) int h = 0; int rowPos; - for ( rowPos = 0; rowPos < m_numCols; rowPos++ ) + for ( rowPos = 0; rowPos < m_numRows; rowPos++ ) { i = GetRowAt( rowPos );