Index: src/pathops/SkPathOpsQuad.cpp |
diff --git a/src/pathops/SkPathOpsQuad.cpp b/src/pathops/SkPathOpsQuad.cpp |
index 12b9658ce7cda93f95a8d615a29c9ca90a665e85..3deab211339035498238defdd6ea4a1032fef538 100644 |
--- a/src/pathops/SkPathOpsQuad.cpp |
+++ b/src/pathops/SkPathOpsQuad.cpp |
@@ -119,7 +119,8 @@ and using the roots |
int SkDQuad::RootsReal(const double A, const double B, const double C, double s[2]) { |
const double p = B / (2 * A); |
const double q = C / A; |
- if (approximately_zero(A) && (approximately_zero_inverse(p) || approximately_zero_inverse(q))) { |
+ if (!A || (approximately_zero(A) && (approximately_zero_inverse(p) |
+ || approximately_zero_inverse(q)))) { |
if (approximately_zero(B)) { |
s[0] = 0; |
return C == 0; |