diff options
Diffstat (limited to 'tests/PathOpsConicIntersectionTest.cpp')
-rw-r--r-- | tests/PathOpsConicIntersectionTest.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/PathOpsConicIntersectionTest.cpp b/tests/PathOpsConicIntersectionTest.cpp index 624a68adaf..e22ad6bff1 100644 --- a/tests/PathOpsConicIntersectionTest.cpp +++ b/tests/PathOpsConicIntersectionTest.cpp @@ -165,7 +165,9 @@ static void chopBothWays(const SkDConic& dConic, double t, const char* name) { conic.fW = dConic.fWeight; SkConic chopped[2]; SkDConic dChopped[2]; - conic.chopAt(SkDoubleToScalar(t), chopped); + if (!conic.chopAt(SkDoubleToScalar(t), chopped)) { + return; + } dChopped[0] = dConic.subDivide(0, t); dChopped[1] = dConic.subDivide(t, 1); #if DEBUG_VISUALIZE_CONICS |