summaryrefslogtreecommitdiff
path: root/lib/elements/stroke.py
diff options
context:
space:
mode:
authorLex Neva <lexelby@users.noreply.github.com>2018-06-29 21:26:03 -0400
committerGitHub <noreply@github.com>2018-06-29 21:26:03 -0400
commit4d7b07ff02e13f237fac8eb8715fe4a6324ea6dc (patch)
treef1c29df5f29d5bfefb48513043116b73209f202d /lib/elements/stroke.py
parent7c8cd648a36e10e5ebfb94ce27be76e5ba47f334 (diff)
parentde4ead1ad467997fa81a4459e194769dfab185e2 (diff)
Merge pull request #212 from inkstitch/lexelby-fill-markers
fill start/end
Diffstat (limited to 'lib/elements/stroke.py')
-rw-r--r--lib/elements/stroke.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/elements/stroke.py b/lib/elements/stroke.py
index 5239f978..eca9e0ba 100644
--- a/lib/elements/stroke.py
+++ b/lib/elements/stroke.py
@@ -4,6 +4,7 @@ from .element import param, EmbroideryElement, Patch
from ..i18n import _
from ..utils import cache, Point
from ..stitches import running_stitch
+from ..svg import parse_length_with_units
warned_about_legacy_running_stitch = False
@@ -57,7 +58,7 @@ class Stroke(EmbroideryElement):
def is_running_stitch(self):
# using stroke width <= 0.5 pixels to indicate running stitch is deprecated in favor of dashed lines
- stroke_width = float(self.get_style("stroke-width", 1))
+ stroke_width, units = parse_length_with_units(self.get_style("stroke-width", "1"))
if self.dashed:
return True