Use the right parameter in the previous curve to determine slope change.

This commit is contained in:
Jürg Lehni 2015-01-04 23:02:43 +01:00
parent c20b32f748
commit 18c5c3b7c4

View file

@ -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;