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.