diff options
author | caryclark <caryclark@google.com> | 2016-09-22 12:52:20 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-09-22 12:52:21 -0700 |
commit | 1c1060724407b3b38b2ccc2a7bbb0368222838cb (patch) | |
tree | 384657e4be3b59c48848f69b897852903bd78925 /src/pathops/SkPathWriter.cpp | |
parent | c5850e9fdb62cc4ae5ed2b6af51aea92cac07455 (diff) |
don't close a contour with a line if nothing's there
R=kjlubick@google.com
BUG=skia:5789
GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2360083006
Review-Url: https://codereview.chromium.org/2360083006
Diffstat (limited to 'src/pathops/SkPathWriter.cpp')
-rw-r--r-- | src/pathops/SkPathWriter.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/pathops/SkPathWriter.cpp b/src/pathops/SkPathWriter.cpp index 2c3391bb44..1f6dddd137 100644 --- a/src/pathops/SkPathWriter.cpp +++ b/src/pathops/SkPathWriter.cpp @@ -81,6 +81,9 @@ void SkPathWriter::deferredMove(const SkOpPtT* pt) { void SkPathWriter::finishContour() { if (!this->matchedLast(fDefer[0])) { + if (!fDefer[1]) { + return; + } this->lineTo(); } if (fCurrent.isEmpty()) { |