From cc22b0d298dee71e26a29d6f33bfd682f4263ad5 Mon Sep 17 00:00:00 2001 From: Gabriel Ozouf Date: Fri, 2 Oct 2020 14:21:09 +0200 Subject: [PATCH] [apps/shared] Reset curve range to default in Auto When the range is set to ZoomAuto, the range is recomputed before displaying the curve. --- apps/shared/interactive_curve_view_controller.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/apps/shared/interactive_curve_view_controller.cpp b/apps/shared/interactive_curve_view_controller.cpp index 56ab2d993..29cb6068d 100644 --- a/apps/shared/interactive_curve_view_controller.cpp +++ b/apps/shared/interactive_curve_view_controller.cpp @@ -136,6 +136,10 @@ Responder * InteractiveCurveViewController::defaultController() { void InteractiveCurveViewController::viewWillAppear() { SimpleInteractiveCurveViewController::viewWillAppear(); + if (m_interactiveRange->zoomAuto()) { + m_interactiveRange->setDefault(); + } + /* Warning: init cursor parameter before reloading banner view. Indeed, * reloading banner view needs an updated cursor to load the right data. */ initCursorParameters();