Don't trim a path when length < 1
Path lengths get casted to integers. Lengths < 1 will round to 0
and causes a DivideByZero exception
@@ -97,7 +97,7 @@ final class Utils {
L.endSection("applyTrimPathIfNeeded");
return;
}
- if (length == 0f || Math.abs(endValue - startValue - 1) < .01) {
+ if (length < 1f || Math.abs(endValue - startValue - 1) < .01) {
L.endSection("applyTrimPathIfNeeded");
return;
}
