Bug 1544216 Part 2 - no else after return r=birtles

This commit is contained in:
longsonr
2019-04-17 23:32:38 +01:00
parent f01ae23311
commit 6366336c90

View File

@@ -81,11 +81,11 @@ double SMILKeySpline::GetTForX(double aX) const {
double initialSlope = GetSlope(guessForT, mX1, mX2);
if (initialSlope >= NEWTON_MIN_SLOPE) {
return NewtonRaphsonIterate(aX, guessForT);
} else if (initialSlope == 0.0) {
return guessForT;
} else {
return BinarySubdivide(aX, intervalStart, intervalStart + kSampleStepSize);
}
if (initialSlope == 0.0) {
return guessForT;
}
return BinarySubdivide(aX, intervalStart, intervalStart + kSampleStepSize);
}
double SMILKeySpline::NewtonRaphsonIterate(double aX, double aGuessT) const {