From e50c5a038d71bfb8a72ed77e2779c5649344a6e5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89milie=20Feral?= Date: Wed, 24 May 2017 17:21:03 +0200 Subject: [PATCH] [apps/graph][apps/sequence] Reinit graph range to default when the model changed Change-Id: Id51deba3fc12338fdb97e8daf1618460abac2446 --- apps/shared/function_graph_controller.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/apps/shared/function_graph_controller.cpp b/apps/shared/function_graph_controller.cpp index 2e21015f2..2b5f0f00a 100644 --- a/apps/shared/function_graph_controller.cpp +++ b/apps/shared/function_graph_controller.cpp @@ -141,9 +141,8 @@ void FunctionGraphController::reloadBannerView() { } void FunctionGraphController::initRangeParameters() { - if (didChangeRange(interactiveCurveViewRange())) { - initCursorParameters(); - } + interactiveCurveViewRange()->setDefault(); + initCursorParameters(); } bool FunctionGraphController::moveCursorVertically(int direction) {