Index: src/core/SkPath.cpp |
diff --git a/src/core/SkPath.cpp b/src/core/SkPath.cpp |
index 40ca50b5caf99b4c93f6f9380a9ea62a9f2b7793..75a4cdcd7a25d7fc7eaf6c857eddb5668612ea2f 100644 |
--- a/src/core/SkPath.cpp |
+++ b/src/core/SkPath.cpp |
@@ -1271,12 +1271,14 @@ void SkPath::arcTo(SkScalar rx, SkScalar ry, SkScalar angle, SkPath::ArcSize arc |
// joining the endpoints. |
// http://www.w3.org/TR/SVG/implnote.html#ArcOutOfRangeParameters |
if (!rx || !ry) { |
+ this->lineTo(x, y); |
return; |
} |
// If the current point and target point for the arc are identical, it should be treated as a |
// zero length path. This ensures continuity in animations. |
srcPts[1].set(x, y); |
if (srcPts[0] == srcPts[1]) { |
+ this->lineTo(x, y); |
return; |
} |
rx = SkScalarAbs(rx); |