[apps/shared] Fix a typo in FunctionGraphController

Introduced in commit
[shared] Factorize GraphController::initCursorParameters of Graph and Sequence
This commit is contained in:
Ruben Dashyan
2019-04-26 12:00:14 +02:00
committed by Émilie Feral
parent e13651f6fb
commit 0b2ab14ced

View File

@@ -130,7 +130,7 @@ void FunctionGraphController::initCursorParameters() {
functionIndex = (std::isnan(y) || std::isinf(y)) ? 0 : functionIndex - 1;
selectFunctionWithCursor(functionIndex);
if (interactiveCurveViewRange()->yAuto()) {
interactiveCurveViewRange()->panToMakePointVisible(x, y, displayTopMarginRatio(), k_cursorRightMarginRatio, displayBottomMarginRatio(), k_cursorLeftMarginRatio);
interactiveCurveViewRange()->panToMakePointVisible(x, y, cursorTopMarginRatio(), k_cursorRightMarginRatio, cursorBottomMarginRatio(), k_cursorLeftMarginRatio);
}
}