From 7a6ee5d5f410eb9fc8661655792b7d146849000f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrg=20Lehni?= Date: Tue, 16 Jun 2015 14:49:54 +0200 Subject: [PATCH] Do not implicitly close paths in SVG compound paths. Closes #705 --- src/path/PathItem.js | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/path/PathItem.js b/src/path/PathItem.js index fa8f297b..37c5add7 100644 --- a/src/path/PathItem.js +++ b/src/path/PathItem.js @@ -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));