From ca716e75c8d836ed2efb3ed6d9699593bfe22d6e Mon Sep 17 00:00:00 2001 From: Teja Date: Wed, 25 Mar 2015 19:42:51 +0100 Subject: [PATCH] fixes #17 --- src/octoprint/plugins/svgtogcode/static/js/working_area.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/octoprint/plugins/svgtogcode/static/js/working_area.js b/src/octoprint/plugins/svgtogcode/static/js/working_area.js index c5a585d8..6a56f25e 100644 --- a/src/octoprint/plugins/svgtogcode/static/js/working_area.js +++ b/src/octoprint/plugins/svgtogcode/static/js/working_area.js @@ -217,8 +217,8 @@ $(function(){ namespaces[attr.name] = attr.value; } } - - var newSvg = f.select("g"); + + var newSvg = snap.group(f.selectAll("svg>*")); newSvg.attr(namespaces); var id = self.getEntryId(file); var previewId = self.generateUniqueId(id); // appends -# if multiple times the same design is placed.