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:
parent
df51ec8c40
commit
2698dde445
@ -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 );
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user