Boolean: Make sure we're actually comparing multiple intersections.

This commit is contained in:
Jürg Lehni 2016-07-27 22:57:08 +02:00
parent 4c12f1505c
commit 17cca2984b

View file

@ -679,9 +679,7 @@ PathItem.inject(new function() {
function findBestIntersection(segment) {
var inter = segment._intersection,
start = inter;
if (!inter || !inter._next)
return inter;
while (inter && inter !== start) {
while (inter) {
var other = inter._segment,
next = other.getNext(),
nextInter = next && next._intersection;