| Index: src/pathops/SkPathOpsCubic.cpp
|
| diff --git a/src/pathops/SkPathOpsCubic.cpp b/src/pathops/SkPathOpsCubic.cpp
|
| index 5d77e5ab89b7471cee3f4935ec5b3a9948430eed..60dca44a27134b3304e659fc75dc2eaae054ff7c 100644
|
| --- a/src/pathops/SkPathOpsCubic.cpp
|
| +++ b/src/pathops/SkPathOpsCubic.cpp
|
| @@ -383,8 +383,13 @@ static double interp_cubic_coords(const double* src, double t) {
|
| }
|
|
|
| SkDCubic SkDCubic::subDivide(double t1, double t2) const {
|
| - if (t1 == 0 && t2 == 1) {
|
| - return *this;
|
| + if (t1 == 0 || t2 == 1) {
|
| + if (t1 == 0 && t2 == 1) {
|
| + return *this;
|
| + }
|
| + SkDCubicPair pair = chopAt(t1 == 0 ? t2 : t1);
|
| + SkDCubic dst = t1 == 0 ? pair.first() : pair.second();
|
| + return dst;
|
| }
|
| SkDCubic dst;
|
| double ax = dst[0].fX = interp_cubic_coords(&fPts[0].fX, t1);
|
|
|