Chromium Code Reviews| Index: src/core/SkPathMeasure.cpp |
| diff --git a/src/core/SkPathMeasure.cpp b/src/core/SkPathMeasure.cpp |
| index a5dd84048c56c88334020f1a6d6907b54b918413..dd3ef3b194605ab98fb623b64518eca61a6de9bf 100644 |
| --- a/src/core/SkPathMeasure.cpp |
| +++ b/src/core/SkPathMeasure.cpp |
| @@ -314,7 +314,10 @@ static void seg_to(const SkPoint pts[], int segType, |
| SkASSERT(startT <= stopT); |
| if (startT == stopT) { |
| - return; // should we report this, to undo a moveTo? |
| + SkPoint lastPt; |
|
reed1
2015/08/21 15:26:55
Perhaps a comment about what might cause this, and
caryclark
2015/08/21 15:52:56
Done.
|
| + SkAssertResult(dst->getLastPt(&lastPt)); |
| + dst->lineTo(lastPt); |
| + return; |
| } |
| SkPoint tmp0[7], tmp1[7]; |
| @@ -568,7 +571,7 @@ bool SkPathMeasure::getSegment(SkScalar startD, SkScalar stopD, SkPath* dst, |
| if (stopD > length) { |
| stopD = length; |
| } |
| - if (startD >= stopD) { |
| + if (startD > stopD) { |
| return false; |
| } |