Avoid applying item._matrix twice in Item#intersects()

As suggested by @sapics.
Closes #847
This commit is contained in:
Jürg Lehni 2015-12-27 12:30:38 +01:00
parent 7592895445
commit aa316ffc8c

View file

@ -1671,7 +1671,7 @@ var Item = Base.extend(Emitter, /** @lends Item# */{
// Tell getIntersections() to return as soon as some intersections are
// found, because all we care for here is there are some or none:
return this._asPathItem().getIntersections(item._asPathItem(), null,
_matrix || item._matrix, true).length > 0;
_matrix, true).length > 0;
},
/**