Index: src/pathops/SkOpContour.h |
diff --git a/src/pathops/SkOpContour.h b/src/pathops/SkOpContour.h |
index 899367ab0e4ca99e22a693955c808e295fd80488..7a1cc09247a49bb614ce1ebbf7ba7f7711368529 100644 |
--- a/src/pathops/SkOpContour.h |
+++ b/src/pathops/SkOpContour.h |
@@ -127,9 +127,9 @@ public: |
} |
} |
- void checkEnds() { |
+ bool checkEnds() { |
if (!fContainsCurves) { |
- return; |
+ return true; |
} |
int segmentCount = fSegments.count(); |
for (int sIndex = 0; sIndex < segmentCount; ++sIndex) { |
@@ -140,8 +140,11 @@ public: |
if (segment->done()) { |
continue; // likely coincident, nothing to do |
} |
- segment->checkEnds(); |
+ if (!segment->checkEnds()) { |
+ return false; |
+ } |
} |
+ return true; |
} |
void checkMultiples() { |