From 2ce88a32606c5a27be9371950b7052065cdb423e Mon Sep 17 00:00:00 2001 From: Mike Reed Date: Fri, 14 Aug 2009 15:25:12 -0400 Subject: close out previous contour before starting the next --- src/effects/SkCornerPathEffect.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src') diff --git a/src/effects/SkCornerPathEffect.cpp b/src/effects/SkCornerPathEffect.cpp index 43d571a..27d765f 100644 --- a/src/effects/SkCornerPathEffect.cpp +++ b/src/effects/SkCornerPathEffect.cpp @@ -66,6 +66,10 @@ bool SkCornerPathEffect::filterPath(SkPath* dst, const SkPath& src, SkScalar* wi for (;;) { switch (verb = iter.next(pts)) { case SkPath::kMove_Verb: + // close out the previous (open) contour + if (SkPath::kLine_Verb == prevVerb) { + dst->lineTo(lastCorner); + } closed = iter.isClosedContour(); if (closed) { moveTo = pts[0]; -- cgit v1.1