Do not implicitly close paths in SVG compound paths.

Closes #705
This commit is contained in:
Jürg Lehni 2015-06-16 14:49:54 +02:00
parent 2cf6cd7a14
commit 7a6ee5d5f4

View file

@ -194,8 +194,6 @@ var PathItem = Item.extend(/** @lends PathItem# */{
case 'm':
case 'l':
var move = lower === 'm';
if (move && previous && previous !== 'z')
this.closePath(true);
for (var j = 0; j < length; j += 2)
this[j === 0 && move ? 'moveTo' : 'lineTo'](
current = getPoint(j));