From a36d244eb12faa4b9bfb7bd6eb0a27efa32bcc55 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrg=20Lehni?= Date: Sat, 15 Dec 2012 01:52:23 -0800 Subject: [PATCH] Handle impression in Curve#getCrossings(), causing wrong results when handling circles. --- src/path/Curve.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/path/Curve.js b/src/path/Curve.js index 7030c9a5..0216ffbb 100644 --- a/src/path/Curve.js +++ b/src/path/Curve.js @@ -327,7 +327,7 @@ var Curve = this.Curve = Base.extend(/** @lends Curve# */{ // a change of direction: if (t < Numerical.TOLERANCE && Curve.evaluate( this.getPrevious().getValues(), 1, 1).y - * Curve.evaluate(vals, t, 1).y >= 0) + * Curve.evaluate(vals, t, 1).y >= Numerical.TOLERANCE) continue; crossings++; }