Index: src/effects/SkDashPathEffect.cpp |
diff --git a/src/effects/SkDashPathEffect.cpp b/src/effects/SkDashPathEffect.cpp |
index a053066191e955add6f6b8525a19ebc1c5c90b7e..412965e88356edb7da257046e3fea10995d9fda2 100644 |
--- a/src/effects/SkDashPathEffect.cpp |
+++ b/src/effects/SkDashPathEffect.cpp |
@@ -66,7 +66,7 @@ static bool cull_line(SkPoint* pts, const SkStrokeRec& rec, |
SkScalar dx = pts[1].x() - pts[0].x(); |
SkScalar dy = pts[1].y() - pts[0].y(); |
- if (dx && dy) { |
+ if ((dx && dy) || (!dx && !dy)) { |
return false; |
} |