[apps/sequence/graph] Replace negative cursor abscissa by 0

This commit is contained in:
Ruben Dashyan
2019-05-02 14:55:11 +02:00
committed by Émilie Feral
parent e9df8f7783
commit 4d4adc5873
2 changed files with 2 additions and 2 deletions

View File

@@ -6,7 +6,7 @@ namespace Sequence {
bool GoToParameterController::setParameterAtIndex(int parameterIndex, double f) {
assert(parameterIndex == 0);
return Shared::FunctionGoToParameterController::setParameterAtIndex(parameterIndex, std::round(f));
return Shared::FunctionGoToParameterController::setParameterAtIndex(parameterIndex, std::fmax(0, std::round(f)));
}
}