From 18c5c3b7c44104a6e1543ff22303a562f9373b5d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ju=CC=88rg=20Lehni?= Date: Sun, 4 Jan 2015 23:02:43 +0100 Subject: [PATCH] Use the right parameter in the previous curve to determine slope change. --- src/path/PathItem.Boolean.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/path/PathItem.Boolean.js b/src/path/PathItem.Boolean.js index aa7ac8c9..1c2e4a5d 100644 --- a/src/path/PathItem.Boolean.js +++ b/src/path/PathItem.Boolean.js @@ -318,7 +318,7 @@ PathItem.inject(new function() { // not a crossing. if (Numerical.isZero(slope) && !Curve.isLinear(values) || t < tMin && slope * Curve.evaluate( - curve.previous.values, t, 1).y < 0) { + curve.previous.values, 1, 1).y < 0) { if (testContains && x0 >= xBefore && x0 <= xAfter) { ++windLeft; ++windRight;