Fix row/column confusion in UpdateCurrentCellOnRedim()

This function, just added in dda6aa6bdc,
inverted row and column arguments of SetCurrentCell(), resulting in
assert failures when the grid size changed.

See https://github.com/wxWidgets/wxWidgets/pull/1546
This commit is contained in:
Vadim Zeitlin
2019-09-18 18:05:55 +02:00
parent fcd734387a
commit a65c0c29ac

View File

@@ -3614,7 +3614,7 @@ void wxGrid::UpdateCurrentCellOnRedim()
col = m_numCols - 1;
if (row >= m_numRows)
row = m_numRows - 1;
SetCurrentCell(col, row);
SetCurrentCell(row, col);
}
}
}