Shorten code statement from #1111

This commit is contained in:
Jürg Lehni 2016-07-20 10:29:27 +02:00
parent d1c8ed9203
commit 1264c2764c

View file

@ -911,7 +911,8 @@ PathItem.inject(new function() {
next._handleIn._set(0, 0); next._handleIn._set(0, 0);
var curve = prev.getCurve(); 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); // Transfer handleIn when removing segment:
next._handleIn.set(prev._handleIn);
prev.remove(); prev.remove();
} }
} }