B2017-066 fixed an index out of range when doing a right arrow to walk through table cells where the first column of the table had merged rows
This commit is contained in:
parent
4d5dc34210
commit
2d23a5e6da
@ -4709,7 +4709,7 @@ namespace Volian.Controls.Library
|
||||
CellRange crDest = _owner.GetMergedRange(cr.r2 + 1, 0);
|
||||
if (cr.r2 < crDest.r1) // It will move to the correct place
|
||||
_owner.Select(crDest);
|
||||
else if (crDest.r2 < _owner.Rows.Count)
|
||||
else if (crDest.r2 < _owner.Rows.Count -1) //B2017066 check against count -1 to avoid index out of range error
|
||||
_owner.Select(_owner.GetMergedRange(crDest.r2 + 1, 0));
|
||||
else
|
||||
_owner.OnCursorMovement(this, new VlnFlexGridCursorMovementEventArgs(args.Key));
|
||||
|
Loading…
x
Reference in New Issue
Block a user