mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-19 00:37:25 +01:00
[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:
committed by
Émilie Feral
parent
e2725c8e61
commit
cc22b0d298
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user