From 08f633e7e6284583b222457bf1cd05636162336f Mon Sep 17 00:00:00 2001 From: Jan Date: Wed, 20 Jul 2016 10:05:03 +0200 Subject: [PATCH] Transfer handle when removing segment --- src/path/PathItem.Boolean.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/path/PathItem.Boolean.js b/src/path/PathItem.Boolean.js index 3a33bec1..d02cd10a 100644 --- a/src/path/PathItem.Boolean.js +++ b/src/path/PathItem.Boolean.js @@ -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(); + } } } }