aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/pathops/SkOpContour.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/pathops/SkOpContour.h')
-rw-r--r--src/pathops/SkOpContour.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/pathops/SkOpContour.h b/src/pathops/SkOpContour.h
index 899367ab0e..7a1cc09247 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() {