Index: src/pathops/SkAddIntersections.cpp |
diff --git a/src/pathops/SkAddIntersections.cpp b/src/pathops/SkAddIntersections.cpp |
index 5fa80ec50619f41a13f3592c9c7744207e5ef09d..7d5fc0d4a67eddd6f345ee512521eac3a4bf7caa 100644 |
--- a/src/pathops/SkAddIntersections.cpp |
+++ b/src/pathops/SkAddIntersections.cpp |
@@ -383,8 +383,8 @@ bool AddIntersectTs(SkOpContour* test, SkOpContour* next) { |
for (int pt = 0; pt < pts - 1; ++pt) { |
const SkDPoint& point = ts.pt(pt); |
const SkDPoint& next = ts.pt(pt + 1); |
- if (wt.isNear(ts[swap][pt], ts[swap][pt + 1], point, next) |
- && wn.isNear(ts[!swap][pt], ts[!swap][pt + 1], point, next)) { |
+ if (wt.isPartial(ts[swap][pt], ts[swap][pt + 1], point, next) |
+ && wn.isPartial(ts[!swap][pt], ts[!swap][pt + 1], point, next)) { |
if (!wt.addPartialCoincident(wn, ts, pt, swap)) { |
// remove extra point if two map to same float values |
ts.cleanUpCoincidence(); // prefer (t == 0 or t == 1) |