Merge pull request #1111 from iconexperience/resolveCrossings-patch

Patch for resolveCrossings() to fix #1110
This commit is contained in:
Jürg Lehni 2016-07-20 10:27:24 +02:00 committed by GitHub
commit d1c8ed9203

View file

@ -910,8 +910,10 @@ PathItem.inject(new function() {
prev._handleOut._set(0, 0);
next._handleIn._set(0, 0);
var curve = prev.getCurve();
if (curve.isStraight() && curve.getLength() === 0)
if (curve.isStraight() && curve.getLength() === 0) {
next._handleIn.set(prev._handleIn.x, prev._handleIn.y);
prev.remove();
}
}
}
}