Fix one new failing boolean issue.

This commit is contained in:
Jürg Lehni 2016-01-08 15:33:05 +01:00
parent 66ff8d3a51
commit 74c1f54bb3

View file

@ -239,16 +239,18 @@ PathItem.inject(new function() {
prevT; prevT;
for (var i = locations.length - 1; i >= 0; i--) { for (var i = locations.length - 1; i >= 0; i--) {
var loc = locations[i], var loc = locations[i];
curve = loc._curve, // Call include() before retrieving _curve, because it might cause a
t = loc._parameter, // change in the cached location values (see #resolveCrossings()).
origT = t,
segment;
if (include) { if (include) {
if (!include(loc)) if (!include(loc))
continue; continue;
results.unshift(loc); results.unshift(loc);
} }
var curve = loc._curve,
t = loc._parameter,
origT = t,
segment;
if (curve !== prevCurve) { if (curve !== prevCurve) {
// This is a new curve, update noHandles setting. // This is a new curve, update noHandles setting.
noHandles = !curve.hasHandles(); noHandles = !curve.hasHandles();