Do not reduce linear curves with handles defined.

This commit is contained in:
Jürg Lehni 2015-09-06 13:21:08 +02:00
parent 26e35322a4
commit d7fb5cd512

View file

@ -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();
}