Index: src/pathops/SkOpContour.h |
diff --git a/src/pathops/SkOpContour.h b/src/pathops/SkOpContour.h |
index c90c2183446c972873e6fdb4fffdf338e7f001c4..c57fbac6cae9bb2511ba5e1aa485658c51120917 100644 |
--- a/src/pathops/SkOpContour.h |
+++ b/src/pathops/SkOpContour.h |
@@ -114,7 +114,7 @@ public: |
const SkPoint& end() const { |
const SkOpSegment& segment = fSegments.back(); |
- return segment.pts()[segment.verb()]; |
+ return segment.pts()[SkPathOpsVerbToPoints(segment.verb())]; |
} |
void findTooCloseToCall() { |
@@ -195,7 +195,7 @@ public: |
int updateSegment(int index, const SkPoint* pts) { |
SkOpSegment& segment = fSegments[index]; |
segment.updatePts(pts); |
- return segment.verb() + 1; |
+ return SkPathOpsVerbToPoints(segment.verb()) + 1; |
} |
#if DEBUG_TEST |