Index: src/core/SkPathMeasure.cpp |
diff --git a/src/core/SkPathMeasure.cpp b/src/core/SkPathMeasure.cpp |
index 17ae95e8014930abdb010ed8bc3b0300f5dd2d70..a5dd84048c56c88334020f1a6d6907b54b918413 100644 |
--- a/src/core/SkPathMeasure.cpp |
+++ b/src/core/SkPathMeasure.cpp |
@@ -314,12 +314,7 @@ |
SkASSERT(startT <= stopT); |
if (startT == stopT) { |
- /* if the dash as a zero-length on segment, add a corresponding zero-length line. |
- The stroke code will add end caps to zero length lines as appropriate */ |
- SkPoint lastPt; |
- SkAssertResult(dst->getLastPt(&lastPt)); |
- dst->lineTo(lastPt); |
- return; |
+ return; // should we report this, to undo a moveTo? |
} |
SkPoint tmp0[7], tmp1[7]; |
@@ -573,7 +568,7 @@ |
if (stopD > length) { |
stopD = length; |
} |
- if (startD > stopD) { |
+ if (startD >= stopD) { |
return false; |
} |