diff options
Diffstat (limited to 'src/core/SkPathMeasure.cpp')
-rw-r--r-- | src/core/SkPathMeasure.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/SkPathMeasure.cpp b/src/core/SkPathMeasure.cpp index 75e2bdf170..e2fdc180f3 100644 --- a/src/core/SkPathMeasure.cpp +++ b/src/core/SkPathMeasure.cpp @@ -182,7 +182,7 @@ static SkScalar quad_folded_len(const SkPoint pts[3]) { SkPoint pt = SkEvalQuadAt(pts, t); SkVector a = pts[2] - pt; SkScalar result = a.length(); - if (0 != t) { + if (0 != t && 1 != t) { SkVector b = pts[0] - pt; result += b.length(); } |