InputRoll - don't highlight past RowCount!

This commit is contained in:
adelikat 2014-09-21 16:27:49 +00:00
parent 9603f41769
commit a7baed9007
1 changed files with 39 additions and 36 deletions

View File

@ -1291,6 +1291,8 @@ namespace BizHawk.Client.EmuHawk
/// </summary>
/// <param name="cell">The cell to select.</param>
private void SelectCell(Cell cell, bool toggle = false)
{
if (cell.RowIndex.HasValue && cell.RowIndex < RowCount)
{
if (!MultiSelect)
{
@ -1342,6 +1344,7 @@ namespace BizHawk.Client.EmuHawk
SelectedIndexChanged(this, new EventArgs());
}
}
/// <summary>
/// Bool that indicates if CurrentCell is a Column Cell.