From 4453f68cfacd80480e80b83248fded2060b6d43c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrg=20Lehni?= Date: Thu, 20 Feb 2014 02:13:55 +0100 Subject: [PATCH] Revert handling of linear segment reseting, as it broke some rare boolean tests. --- src/path/PathItem.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/path/PathItem.js b/src/path/PathItem.js index ca373029..dc4f7c19 100644 --- a/src/path/PathItem.js +++ b/src/path/PathItem.js @@ -303,12 +303,12 @@ statics: { function resetLinear() { // Reset linear segments if they were part of a linear curve // and if we are done with the entire curve. - for (var i = 0, l = linearSegments.length - 1; i <= l; i++) { + for (var i = 0, l = linearSegments.length; i < l; i++) { var segment = linearSegments[i]; - if (i > 0) - segment._handleIn.set(0, 0); - if (i < l) - segment._handleOut.set(0, 0); + // FIXME: Don't reset the appropriate handle if the intersection + // was on t == 0 && t == 1. + segment._handleOut.set(0, 0); + segment._handleIn.set(0, 0); } }