Clamp progress value to 0.0 - 1.0 before updating progress bar

* Speculative fix for a reported crash
This commit is contained in:
baldurk
2017-04-26 16:41:21 +01:00
parent bffea4c788
commit 9759911ffd
@@ -70,6 +70,7 @@ namespace renderdocui.Windows
return;
}
f = Helpers.Clamp(f, 0.0f, 1.0f);
progressBar.Value = (int)(progressBar.Maximum * f);
}));
}