| Index: src/pathops/SkPathOpsSimplify.cpp
|
| diff --git a/src/pathops/SkPathOpsSimplify.cpp b/src/pathops/SkPathOpsSimplify.cpp
|
| index dcd75f166641b90f6c3b2f2fce9088d685cf9d57..2376e1d25967e2bd7b064bdc2b5fbd958fa7a0c4 100644
|
| --- a/src/pathops/SkPathOpsSimplify.cpp
|
| +++ b/src/pathops/SkPathOpsSimplify.cpp
|
| @@ -36,7 +36,10 @@ static bool bridgeWinding(SkOpContourHead* contourList, SkPathWriter* simple, bo
|
| if (!unsortable && simple->hasMove()
|
| && current->verb() != SkPath::kLine_Verb
|
| && !simple->isClosed()) {
|
| - if (!current->addCurveTo(start, end, simple)) {
|
| + // FIXME: put in the next two lines to avoid handling already added
|
| + if (start->starter(end)->checkAlreadyAdded()) {
|
| + simple->close();
|
| + } else if (!current->addCurveTo(start, end, simple)) {
|
| return false;
|
| }
|
| if (!simple->isClosed()) {
|
|
|