InputRoll - only attempt to remove selected items beyond rowcount if there are selected items past that count, this may fix the underlying issue in #1822
This commit is contained in:
parent
fc45ffa60e
commit
d06ddc04e1
|
@ -269,7 +269,12 @@ namespace BizHawk.Client.EmuHawk
|
|||
}
|
||||
|
||||
_rowCount = value;
|
||||
_selectedItems.RemoveWhere(i => i.RowIndex >= _rowCount);
|
||||
|
||||
if (_selectedItems.Max(s => s.RowIndex) >= _rowCount)
|
||||
{
|
||||
_selectedItems.RemoveWhere(i => i.RowIndex >= _rowCount);
|
||||
}
|
||||
|
||||
RecalculateScrollBars();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue