From 0b2ab14cedaba0ea386b9ce5b83b7dafed9addf1 Mon Sep 17 00:00:00 2001 From: Ruben Dashyan Date: Fri, 26 Apr 2019 12:00:14 +0200 Subject: [PATCH] [apps/shared] Fix a typo in FunctionGraphController Introduced in commit [shared] Factorize GraphController::initCursorParameters of Graph and Sequence --- apps/shared/function_graph_controller.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/shared/function_graph_controller.cpp b/apps/shared/function_graph_controller.cpp index 8f89bc59b..7e9b78cb1 100644 --- a/apps/shared/function_graph_controller.cpp +++ b/apps/shared/function_graph_controller.cpp @@ -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); } }