projects
/
platform
/
upstream
/
libSkiaSharp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4784225
)
one more empty contour
author
Cary Clark
<caryclark@google.com>
Wed, 21 Dec 2016 13:25:00 +0000
(08:25 -0500)
committer
Skia Commit-Bot
<skia-commit-bot@chromium.org>
Wed, 21 Dec 2016 13:57:47 +0000
(13:57 +0000)
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>
src/pathops/SkOpBuilder.cpp
patch
|
blob
|
history
diff --git
a/src/pathops/SkOpBuilder.cpp
b/src/pathops/SkOpBuilder.cpp
index
075520d
..
abff982
100644
(file)
--- 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 {