Index: src/pathops/SkPathOpsCommon.cpp |
diff --git a/src/pathops/SkPathOpsCommon.cpp b/src/pathops/SkPathOpsCommon.cpp |
index fd4c027ddbea4b0721a6e8d9d56784501467da27..52de8c1e07850678c14e9293556c622fb3889326 100644 |
--- a/src/pathops/SkPathOpsCommon.cpp |
+++ b/src/pathops/SkPathOpsCommon.cpp |
@@ -513,7 +513,10 @@ bool HandleCoincidence(SkOpContourHead* contourList, SkOpCoincidence* coincidenc |
#endif |
DEBUG_COINCIDENCE_HEALTH(contourList, "expand2"); |
// the expanded ranges may not align -- add the missing spans |
- SkAssertResult(coincidence->addExpanded()); |
+ if (!coincidence->addExpanded()) { |
+ SkASSERT(globalState->debugSkipAssert()); |
+ return false; |
+ } |
DEBUG_COINCIDENCE_HEALTH(contourList, "addExpanded3"); |
coincidence->correctEnds(); |
if (!coincidence->mark()) { // mark spans of coincident segments as coincident |