[poincare/zoom] Move automatic zoom to Poincare

Change-Id: I7a70ab54b33b9150682cc4f999ff4999a8288b7f
This commit is contained in:
Gabriel Ozouf
2020-09-28 15:18:17 +02:00
committed by Émilie Feral
parent 7499a9e0a4
commit d2b36be846
9 changed files with 299 additions and 256 deletions

View File

@@ -263,7 +263,7 @@ void ContinuousFunction::setTMax(float tMax) {
void ContinuousFunction::rangeForDisplay(float * xMin, float * xMax, float * yMin, float * yMax, Poincare::Context * context, bool tuneXRange) const {
if (plotType() == PlotType::Cartesian) {
Function::rangeForDisplay(xMin, xMax, yMin, yMax, context, tuneXRange);
protectedRangeForDisplay(xMin, xMax, yMin, yMax, context, tuneXRange, true);
} else {
fullXYRange(xMin, xMax, yMin, yMax, context);
}