| commit | c899ad9c7fa28234d99479ab09afb6866bbd8dc3 | [log] [tgz] |
|---|---|---|
| author | caryclark@google.com <caryclark@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | Thu Aug 23 15:24:42 2012 +0000 |
| committer | caryclark@google.com <caryclark@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | Thu Aug 23 15:24:42 2012 +0000 |
| tree | 6db0ad2ad72200483a1b8af57df7a010e5229cb8 | |
| parent | ea82695325e2afc68f646fcc23fcae8b1bff6dc1 [diff] [blame] |
shape ops work in progress add xor spot tests rewrite path compare work on quadratic, angle, tooCloseToCall code git-svn-id: http://skia.googlecode.com/svn/trunk@5255 2bbb7eff-a529-9590-31e7-b0007b416f81
diff --git a/experimental/Intersection/QuadraticUtilities.cpp b/experimental/Intersection/QuadraticUtilities.cpp index cc15bc1..88524ca 100644 --- a/experimental/Intersection/QuadraticUtilities.cpp +++ b/experimental/Intersection/QuadraticUtilities.cpp
@@ -39,7 +39,9 @@ } else if (ratio > 1 - FLT_EPSILON) { ratio = 1; } - t[foundRoots++] = ratio; + if (foundRoots == 0 || fabs(t[0] - ratio) >= FLT_EPSILON) { + t[foundRoots++] = ratio; + } } return foundRoots; }