[apps/shared] Reset curve range to default in Auto

When the range is set to ZoomAuto, the range is recomputed before
displaying the curve.
This commit is contained in:
Gabriel Ozouf
2020-10-02 14:21:09 +02:00
committed by Émilie Feral
parent e2725c8e61
commit cc22b0d298

View File

@@ -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();