[interactive_curve_view_range] Missing refresh

Fixes the following bug :
  - Plot ln(x) (or any other curve that's normlalized by default)
  - Go back and replace ln(x) with log(x) (or any other curve that's NOT
    normalized by default)
--> The 'Equal Axes' button is still on.

Change-Id: I0ef50dc9866e908894bd4f5c3ade198f9b3ea318
This commit is contained in:
Gabriel Ozouf
2020-10-29 10:13:46 +01:00
committed by Émilie Feral
parent f789bb156d
commit ad7890a19c

View File

@@ -168,8 +168,10 @@ void InteractiveCurveViewRange::setDefault() {
}
/* If m_zoomNormalize was left active, xGridUnit() would return the value of
* yGridUnit, even if the ranger were not truly normalized. */
m_zoomNormalize = false;
* yGridUnit, even if the ranger were not truly normalized. We use
* setZoomNormalize to refresh the button in case the graph does not end up
* normalized. */
setZoomNormalize(false);
// Compute the interesting range
m_delegate->interestingRanges(this);