mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-19 00:37:25 +01:00
[apps/statistics] Unable the user to set the bar width with a INF/ NAN
value Change-Id: I42963c034a269971c332888839b940ea9bdec3c1
This commit is contained in:
@@ -32,7 +32,7 @@ float HistogramParameterController::parameterAtIndex(int index) {
|
||||
void HistogramParameterController::setParameterAtIndex(int parameterIndex, float f) {
|
||||
assert(parameterIndex >= 0 && parameterIndex < 2);
|
||||
if (parameterIndex == 0) {
|
||||
if (f <= 0.0f) {
|
||||
if (f <= 0.0f || isnan(f) || isinf(f)) {
|
||||
app()->displayWarning("Value interdite");
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user