mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-03-26 17:20:53 +01:00
[apps/probability] Display an error modal when the parameter is out of
the domain Change-Id: I47ea5bbf4ac516d9cd876f546b606e3377c621f7
This commit is contained in:
@@ -178,6 +178,10 @@ float ParametersController::parameterAtIndex(int index) {
|
||||
}
|
||||
|
||||
void ParametersController::setParameterAtIndex(int parameterIndex, float f) {
|
||||
if (!m_law->authorizedValueAtIndex(f, parameterIndex)) {
|
||||
app()->displayWarning("Cette valeur est interdite !");
|
||||
return;
|
||||
}
|
||||
m_law->setParameterAtIndex(f, parameterIndex);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user