Index: src/pathops/SkOpSegment.h |
diff --git a/src/pathops/SkOpSegment.h b/src/pathops/SkOpSegment.h |
index 7cf4b269f0a709e004c2fd96e51a5d05d8020680..89af5a10fc950411334d6166d721380bfa9fc380 100644 |
--- a/src/pathops/SkOpSegment.h |
+++ b/src/pathops/SkOpSegment.h |
@@ -74,6 +74,7 @@ public: |
bool addExpanded(double newT, const SkOpSpanBase* test, bool* startOver); |
SkOpSegment* addLine(SkPoint pts[2], SkOpContour* parent) { |
+ SkASSERT(pts[0] != pts[1]); |
init(pts, 1, parent, SkPath::kLine_Verb); |
fBounds.set(pts, 2); |
return this; |