From e5e2a8d7d4212f0166aec057e58259435f248884 Mon Sep 17 00:00:00 2001 From: hkrish Date: Tue, 13 May 2014 20:41:48 +0200 Subject: [PATCH] Revert "Correct boolean condition in getWinding." This reverts commit fcc2e93dafc105db8f5cbc1d97763bde037a0f87. --- src/path/PathItem.Boolean.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/path/PathItem.Boolean.js b/src/path/PathItem.Boolean.js index a0afe7fe..30d56f5e 100644 --- a/src/path/PathItem.Boolean.js +++ b/src/path/PathItem.Boolean.js @@ -275,9 +275,9 @@ PathItem.inject(new function() { // compare the endpoints of the curve to determine if the // ray from query point along +-x direction will intersect // the monotone curve. Results in quite significant speedup. - if ((winding === -1 || (winding === 1 - && ((y >= values[1] && y <= values[7]) - || (y >= values[7] && y <= values[1])))) + if (winding && (winding === 1 + && y >= values[1] && y <= values[7] + || y >= values[7] && y <= values[1]) && Curve.solveCubic(values, 1, y, roots, 0, // If the next curve is horizontal, we have to include // the end of this curve to make sure we won't miss an