Index: src/pathops/SkOpContour.h |
diff --git a/src/pathops/SkOpContour.h b/src/pathops/SkOpContour.h |
index 0db6eabdfe7f6229e9f7cf848ea0bb60a15b2deb..fa90c45bb64b4655fcae9aa7536a1e6a67338ecf 100644 |
--- a/src/pathops/SkOpContour.h |
+++ b/src/pathops/SkOpContour.h |
@@ -44,6 +44,7 @@ public: |
SkOpSegment* addCurve(SkPath::Verb verb, const SkPoint pts[4]); |
SkOpSegment* addLine(SkPoint pts[2]) { |
+ SkASSERT(pts[0] != pts[1]); |
return appendSegment().addLine(pts, this); |
} |