Index: src/utils/SkDashPath.cpp |
diff --git a/src/utils/SkDashPath.cpp b/src/utils/SkDashPath.cpp |
index de249f6fff3b747066cfc38080b453b3342b0e9f..4b2b33d2c4a1bf2ced56dcdd3d13ddf4772a0f29 100644 |
--- a/src/utils/SkDashPath.cpp |
+++ b/src/utils/SkDashPath.cpp |
@@ -272,7 +272,7 @@ |
while (distance < length) { |
SkASSERT(dlen >= 0); |
addedSegment = false; |
- if (is_even(index) && !skipFirstSegment) { |
+ if (is_even(index) && dlen > 0 && !skipFirstSegment) { |
addedSegment = true; |
++segCount; |