[poincare/zoom] Return value for boring curve

Change-Id: Iad983da0aa3066f5be0c75c5b8e38e62a907d5a1
This commit is contained in:
Gabriel Ozouf
2020-10-15 16:59:41 +02:00
committed by Émilie Feral
parent c647bfe566
commit 9c320185dd

View File

@@ -146,8 +146,10 @@ bool Zoom::InterestingRangesForDisplay(ValueAtAbscissa evaluation, float * xMin,
resultX[1] = std::max(resultX[1], asymptote[1]);
if (resultX[0] >= resultX[1]) {
/* Fallback to default range. */
resultX[0] = NAN;
resultX[1] = NAN;
*xMin = NAN;
*xMax = NAN;
*yMin = NAN;
*yMax = NAN;
return false;
} else {
resultX[0] = std::min(resultX[0], explosion[0]);