| Index: src/pathops/SkOpBuilder.cpp
|
| diff --git a/src/pathops/SkOpBuilder.cpp b/src/pathops/SkOpBuilder.cpp
|
| index 2fbd4f0460b7a758deea38cfc9f18780e37ffba6..0d229a8c40365fe57c759dd24dd7741aac22b7e4 100644
|
| --- a/src/pathops/SkOpBuilder.cpp
|
| +++ b/src/pathops/SkOpBuilder.cpp
|
| @@ -158,9 +158,11 @@ bool SkOpBuilder::resolve(SkPath* result) {
|
| *result = original;
|
| return false;
|
| }
|
| - // convert the even odd result back to winding form before accumulating it
|
| - FixWinding(&fPathRefs[index]);
|
| - sum.addPath(fPathRefs[index]);
|
| + if (!fPathRefs[index].isEmpty()) {
|
| + // convert the even odd result back to winding form before accumulating it
|
| + FixWinding(&fPathRefs[index]);
|
| + sum.addPath(fPathRefs[index]);
|
| + }
|
| }
|
| reset();
|
| bool success = Simplify(sum, result);
|
|
|