From 1966a8b68c3bed37e3fc1e87f727464ba2e90f2a Mon Sep 17 00:00:00 2001 From: make-ing Date: Tue, 21 Jun 2016 16:20:41 +0200 Subject: [PATCH] fixed #28: select all elements with attribute "display=none" and remove them. --- src/octoprint/plugins/svgtogcode/static/js/working_area.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/octoprint/plugins/svgtogcode/static/js/working_area.js b/src/octoprint/plugins/svgtogcode/static/js/working_area.js index 3aafd98a..f6e370e8 100644 --- a/src/octoprint/plugins/svgtogcode/static/js/working_area.js +++ b/src/octoprint/plugins/svgtogcode/static/js/working_area.js @@ -253,6 +253,9 @@ $(function(){ clipPathEl.remove() } + // find all elements with "display=none" and remove them + f.selectAll("[display=none]").remove() + // iterate svg tag attributes for(var i = 0; i < root_attrs.length; i++){ var attr = root_attrs[i];