Fixed bug with InputRoll selected rows drawing hidden columns.

This commit is contained in:
Kyle Howell 2016-09-25 14:04:57 -06:00
parent d66181a597
commit 4834e31bb8
1 changed files with 5 additions and 4 deletions

View File

@ -458,9 +458,10 @@ namespace BizHawk.Client.EmuHawk
int _lastVisibleRow = LastVisibleRow; int _lastVisibleRow = LastVisibleRow;
int lastRow = -1; int lastRow = -1;
foreach (Cell cell in SelectedItems) foreach (Cell cell in SelectedItems)
{ {
if (cell.RowIndex > _lastVisibleRow || cell.RowIndex < FirstVisibleRow) if (cell.RowIndex > _lastVisibleRow || cell.RowIndex < FirstVisibleRow ||
continue; !VisibleColumns.Contains(cell.Column))
continue;
Cell relativeCell = new Cell Cell relativeCell = new Cell
{ {
@ -540,7 +541,7 @@ namespace BizHawk.Client.EmuHawk
int range = Math.Min(LastVisibleRow, RowCount - 1) - startIndex + 1; int range = Math.Min(LastVisibleRow, RowCount - 1) - startIndex + 1;
int lastVisible = LastVisibleColumnIndex; int lastVisible = LastVisibleColumnIndex;
int firstVisibleColumn = FirstVisibleColumn; int firstVisibleColumn = FirstVisibleColumn;
if (HorizontalOrientation) if (HorizontalOrientation)
{ {
for (int i = 0, f = 0; f < range; i++, f++) for (int i = 0, f = 0; f < range; i++, f++)
{ {