summaryrefslogtreecommitdiff
path: root/lib/elements/stroke.py
diff options
context:
space:
mode:
authorLex Neva <github.com@lexneva.name>2018-06-10 15:13:51 -0400
committerLex Neva <github.com@lexneva.name>2018-06-10 15:25:46 -0400
commitd06ff488f0977ab52dbf0169d85cc5d7a413e079 (patch)
tree92309161007a4cfbde3108e69dc6ae36c9fe9711 /lib/elements/stroke.py
parent4a2162e25892da7ce49b944532ebc8f2a9786a28 (diff)
fix defaulting of stroke width to 1
Diffstat (limited to 'lib/elements/stroke.py')
-rw-r--r--lib/elements/stroke.py5
1 files changed, 1 insertions, 4 deletions
diff --git a/lib/elements/stroke.py b/lib/elements/stroke.py
index d3054132..5239f978 100644
--- a/lib/elements/stroke.py
+++ b/lib/elements/stroke.py
@@ -57,10 +57,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
- try:
- stroke_width = float(self.get_style("stroke-width"))
- except ValueError:
- stroke_width = 1
+ stroke_width = float(self.get_style("stroke-width", 1))
if self.dashed:
return True