summaryrefslogtreecommitdiff
path: root/pathops/SkDLineIntersection.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'pathops/SkDLineIntersection.cpp')
-rw-r--r--pathops/SkDLineIntersection.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/pathops/SkDLineIntersection.cpp b/pathops/SkDLineIntersection.cpp
index f1adce21..89695395 100644
--- a/pathops/SkDLineIntersection.cpp
+++ b/pathops/SkDLineIntersection.cpp
@@ -292,7 +292,7 @@ int SkIntersections::vertical(const SkDLine& line, double x) {
int SkIntersections::vertical(const SkDLine& line, double top, double bottom,
double x, bool flipped) {
- fMax = 2;
+ fMax = 3; // cleanup parallel lines will bring this back line
// see if end points intersect the opposite line
double t;
SkDPoint topPt = { x, top };
@@ -344,6 +344,7 @@ int SkIntersections::vertical(const SkDLine& line, double top, double bottom,
}
}
cleanUpParallelLines(result == 2);
+ SkASSERT(fUsed <= 2);
return fUsed;
}