summaryrefslogtreecommitdiff
path: root/lib/stitches/auto_satin.py
diff options
context:
space:
mode:
Diffstat (limited to 'lib/stitches/auto_satin.py')
-rw-r--r--lib/stitches/auto_satin.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/stitches/auto_satin.py b/lib/stitches/auto_satin.py
index 9edff53c..112c714b 100644
--- a/lib/stitches/auto_satin.py
+++ b/lib/stitches/auto_satin.py
@@ -210,7 +210,6 @@ class RunningStitch(object):
self.path = path_or_stroke
self.original_element = original_element
- self.style = original_element.node.get('style', '')
self.running_stitch_length = \
original_element.node.get(INKSTITCH_ATTRIBS['running_stitch_length_mm'], '') or \
original_element.node.get(INKSTITCH_ATTRIBS['center_walk_underlay_stitch_length_mm'], '') or \
@@ -221,7 +220,7 @@ class RunningStitch(object):
node.set("d", cubicsuperpath.formatPath(
line_strings_to_csp([self.path])))
- style = simplestyle.parseStyle(self.style)
+ style = self.original_element.parse_style()
style['stroke-dasharray'] = "0.5,0.5"
style = simplestyle.formatStyle(style)
node.set("style", style)