Avoid exception seeking to invalid row in mesh viewer

* This happened when jumping to a primitive from pixel history if the
  views were synced.
This commit is contained in:
baldurk
2016-07-25 13:01:37 +02:00
parent 89402c03bf
commit 0ebf99f0b4
+2 -1
View File
@@ -3465,7 +3465,8 @@ namespace renderdocui.Windows
if (scroll)
{
if (g.RowCount > 0 && g.RowCount > primary.FirstDisplayedScrollingRowIndex)
if (g.RowCount > 0 && primary.FirstDisplayedScrollingRowIndex >= 0 &&
g.RowCount > primary.FirstDisplayedScrollingRowIndex)
g.FirstDisplayedScrollingRowIndex = primary.FirstDisplayedScrollingRowIndex;
}
}