Fix reported crash - clamp row count input to non-negative value

This commit is contained in:
baldurk
2017-04-21 14:28:15 +01:00
parent 2632638615
commit 5848d00091
+1 -1
View File
@@ -820,7 +820,7 @@ namespace renderdocui.Windows
if (IsDisposed || MeshView) return int.MaxValue;
int maxrows = 0;
int.TryParse(rowRange.Text, out maxrows);
return maxrows;
return Math.Max(0, maxrows);
}
}