summaryrefslogtreecommitdiff
path: root/lib/stitches/auto_satin.py
diff options
context:
space:
mode:
authorKaalleen <36401965+kaalleen@users.noreply.github.com>2020-05-02 15:00:42 +0200
committerGitHub <noreply@github.com>2020-05-02 15:00:42 +0200
commita67eace2cd992617d26f28a475be7c0fd6e2f198 (patch)
tree8469296c2e9733d69fb13cfefb56a494f70e2858 /lib/stitches/auto_satin.py
parent8994982d70921791fe2d095743212963fb4657a6 (diff)
inherit styles (#673)
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)