diff options
author | Cary Clark <caryclark@google.com> | 2016-12-20 12:52:34 -0500 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2016-12-20 18:29:18 +0000 |
commit | 8e444a68024bf1e082bbfffe12ae08c981bb26d3 (patch) | |
tree | ea58d1ee2ae3d3af45a1edd3e1383d929a8bb9ad /src/pathops/SkPathOpsWinding.cpp | |
parent | c1c607e165b4306ff1fdc60139dce174019864a4 (diff) |
check for empty contours in sortable top
TBR=reed@google.com
BUG=675132
Change-Id: I022ce0c59574b450e47e22a3dac0929034439b1b
Reviewed-on: https://skia-review.googlesource.com/6334
Reviewed-by: Cary Clark <caryclark@google.com>
Commit-Queue: Cary Clark <caryclark@google.com>
Diffstat (limited to 'src/pathops/SkPathOpsWinding.cpp')
-rw-r--r-- | src/pathops/SkPathOpsWinding.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/pathops/SkPathOpsWinding.cpp b/src/pathops/SkPathOpsWinding.cpp index cec9a22e20..7a61fd56b0 100644 --- a/src/pathops/SkPathOpsWinding.cpp +++ b/src/pathops/SkPathOpsWinding.cpp @@ -249,6 +249,9 @@ bool SkOpSpan::sortableTop(SkOpContour* contourHead) { } SkOpContour* contour = contourHead; do { + if (!contour->count()) { + continue; + } contour->rayCheck(hitBase, dir, &hitHead, &allocator); } while ((contour = contour->next())); // sort hits |