From fa9193dcbe813e32376acb2411bfbb2420d03c28 Mon Sep 17 00:00:00 2001 From: Cary Clark Date: Wed, 21 Dec 2016 08:25:00 -0500 Subject: [PATCH] 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 Commit-Queue: Cary Clark --- src/pathops/SkOpBuilder.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/pathops/SkOpBuilder.cpp b/src/pathops/SkOpBuilder.cpp index 075520d..abff982 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 { -- 2.7.4