From 4bda878f5fc44831e5afa26cec0005910d9babe9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrg=20Lehni?= Date: Tue, 18 Jun 2013 17:35:49 -0700 Subject: [PATCH] Fix accidental code removal. --- src/svg/SVGImport.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/svg/SVGImport.js b/src/svg/SVGImport.js index d274ace1..41c56f4e 100644 --- a/src/svg/SVGImport.js +++ b/src/svg/SVGImport.js @@ -97,7 +97,7 @@ new function() { if (childNode.nodeType == 1 && (child = importSVG(childNode))) { // When adding CompoundPaths to other CompoundPaths, // we need to "unbox" them first: - if (child instanceof CompoundPath) { + if (clip && child instanceof CompoundPath) { children.push.apply(children, child.removeChildren()); child.remove(); } else if (!(child instanceof Symbol)) {