[apps/graph] init Range to -5..5 if polar/param

This commit is contained in:
Léa Saviot
2019-09-02 15:19:17 +02:00
parent 27859dc923
commit 18a458bae5
5 changed files with 27 additions and 4 deletions

View File

@@ -146,9 +146,16 @@ void InteractiveCurveViewRange::setDefault() {
if (m_delegate == nullptr) {
return;
}
m_yAuto = true;
m_xMax = m_delegate->interestingXHalfRange();
setXMin(-m_xMax);
if (!m_delegate->defautRangeIsNormalized()) {
m_yAuto = true;
return;
}
m_yAuto = false;
m_yMax = 3.0f;
setYMin(-m_yMax);
normalize();
}
void InteractiveCurveViewRange::centerAxisAround(Axis axis, float position) {