diff options
author | Cary Clark <caryclark@google.com> | 2016-12-21 08:25:00 -0500 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2016-12-21 13:57:47 +0000 |
commit | fa9193dcbe813e32376acb2411bfbb2420d03c28 (patch) | |
tree | 2683e1da78dbfe2cb56596f13b2e0c21ca7c9956 /src/pathops | |
parent | 478422596eb2521ad6f912d36299df7a36959873 (diff) |
one more empty contour
Add one more empty contour check.
R=kjlubick@google.com
BUG=skia:6073
Change-Id: Ie971875d37388f6bd86a0bdaeaf9230d64aca38d
Reviewed-on: https://skia-review.googlesource.com/6356
Reviewed-by: Kevin Lubick <kjlubick@google.com>
Commit-Queue: Cary Clark <caryclark@google.com>
Diffstat (limited to 'src/pathops')
-rw-r--r-- | src/pathops/SkOpBuilder.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/pathops/SkOpBuilder.cpp b/src/pathops/SkOpBuilder.cpp index 075520d2c1..abff9827d5 100644 --- a/src/pathops/SkOpBuilder.cpp +++ b/src/pathops/SkOpBuilder.cpp @@ -92,6 +92,9 @@ bool SkOpBuilder::FixWinding(SkPath* path) { SkPathWriter woundPath(empty); SkOpContour* test = &contourHead; do { + if (!test->count()) { + continue; + } if (test->reversed()) { test->toReversePath(&woundPath); } else { |