aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/pathops
diff options
context:
space:
mode:
authorGravatar Cary Clark <caryclark@google.com>2016-12-20 12:52:34 -0500
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2016-12-20 18:29:18 +0000
commit8e444a68024bf1e082bbfffe12ae08c981bb26d3 (patch)
treeea58d1ee2ae3d3af45a1edd3e1383d929a8bb9ad /src/pathops
parentc1c607e165b4306ff1fdc60139dce174019864a4 (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')
-rw-r--r--src/pathops/SkPathOpsWinding.cpp3
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