diff options
| author | Lex Neva <github.com@lexneva.name> | 2018-06-21 15:41:06 -0400 |
|---|---|---|
| committer | Lex Neva <github.com@lexneva.name> | 2018-06-21 15:41:06 -0400 |
| commit | e29096ee138bd674e96a369a853d75eb7c919823 (patch) | |
| tree | 963188c1d0ec3fa010fe353e2d97be64b6856066 /lib/elements/stroke.py | |
| parent | c8fe52f136c77906741fdab7093942eeb363a209 (diff) | |
add commands framework
Diffstat (limited to 'lib/elements/stroke.py')
| -rw-r--r-- | lib/elements/stroke.py | 3 |
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 |
