summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLex Neva <github.com@lexneva.name>2018-04-24 15:41:39 -0400
committerLex Neva <github.com@lexneva.name>2018-04-24 15:41:39 -0400
commit250ae0d7179699b2baa8561e959cbeb7e4007d63 (patch)
tree4803f41d4535abe3718f4cb226960294ec32c16f
parentdc547108e1d85c2dd241d329e0858dced90bf92c (diff)
fix namespace issue
-rw-r--r--inkstitch/extensions.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/inkstitch/extensions.py b/inkstitch/extensions.py
index 70341cd3..8d8a5fbb 100644
--- a/inkstitch/extensions.py
+++ b/inkstitch/extensions.py
@@ -1,6 +1,7 @@
import inkex
import re
import json
+from copy import deepcopy
from collections import MutableMapping
from .elements import AutoFill, Fill, Stroke, SatinColumn, Polyline, EmbroideryElement
from . import SVG_POLYLINE_TAG, SVG_GROUP_TAG, SVG_DEFS_TAG, INKSCAPE_GROUPMODE, EMBROIDERABLE_TAGS, PIXELS_PER_MM
@@ -213,3 +214,4 @@ class InkstitchExtension(inkex.Effect):
inkex.etree.cleanup_namespaces(self.document,
top_nsmap=inkex.NSS,
keep_ns_prefixes=inkex.NSS.keys())
+ self.original_document = deepcopy(self.document)