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:
@@ -3614,7 +3614,7 @@ void wxGrid::UpdateCurrentCellOnRedim()
|
|||||||
col = m_numCols - 1;
|
col = m_numCols - 1;
|
||||||
if (row >= m_numRows)
|
if (row >= m_numRows)
|
||||||
row = m_numRows - 1;
|
row = m_numRows - 1;
|
||||||
SetCurrentCell(col, row);
|
SetCurrentCell(row, col);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user