diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/core/SkScan_Hairline.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/core/SkScan_Hairline.cpp b/src/core/SkScan_Hairline.cpp index ce3fe2b604..84278f4182 100644 --- a/src/core/SkScan_Hairline.cpp +++ b/src/core/SkScan_Hairline.cpp @@ -447,7 +447,8 @@ void extend_pts(SkPath::Verb prevVerb, SkPath::Verb nextVerb, SkPoint* pts, int ++first; } while (++controls < ptCount); } - if (SkPath::kMove_Verb == nextVerb || SkPath::kDone_Verb == nextVerb) { + if (SkPath::kMove_Verb == nextVerb || SkPath::kDone_Verb == nextVerb + || SkPath::kClose_Verb == nextVerb) { SkPoint* last = &pts[ptCount - 1]; SkPoint* ctrl = last; int controls = ptCount - 1; |