From d7fb5cd51285d56db8c7b501a4a32313c6b02d69 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrg=20Lehni?= Date: Sun, 6 Sep 2015 13:21:08 +0200 Subject: [PATCH] Do not reduce linear curves with handles defined. --- src/path/Path.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/path/Path.js b/src/path/Path.js index a03ec7f0..6590c1f3 100644 --- a/src/path/Path.js +++ b/src/path/Path.js @@ -1021,7 +1021,7 @@ var Path = PathItem.extend(/** @lends Path# */{ for (var i = curves.length - 1; i >= 0; i--) { var curve = curves[i], next; - if (curve.isLinear() && (curve.getLength() === 0 + if (!curve.hasHandles() && (curve.getLength() === 0 || (next = curve.getNext()) && curve.isCollinear(next))) curve.remove(); }