diff options
Diffstat (limited to 'src/pathops/SkOpContour.h')
-rw-r--r-- | src/pathops/SkOpContour.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/pathops/SkOpContour.h b/src/pathops/SkOpContour.h index c90c218344..c57fbac6ca 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 |