Fix regression in wxGrid::DeleteRows()

Compare the row position with the number of rows, not columns, fixing a
regression introduced in 3719ab3725 (Add support for rearranging wxGrid
rows order interactively, 2022-04-02) (see #22260).

Closes #22420.

Closes #22423.
This commit is contained in:
DietmarSchwertberger 2022-05-11 21:17:47 +02:00 committed by Vadim Zeitlin
parent df51ec8c40
commit 2698dde445

View File

@ -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 );