Index: src/pathops/SkDLineIntersection.cpp |
diff --git a/src/pathops/SkDLineIntersection.cpp b/src/pathops/SkDLineIntersection.cpp |
index f1adce21005d82b99db5cd988c2f64528643bf7e..89695395e639633b66aa6f1231093c08dd97fe39 100644 |
--- a/src/pathops/SkDLineIntersection.cpp |
+++ b/src/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; |
} |