summaryrefslogtreecommitdiff
path: root/lib/elements/satin_column.py
diff options
context:
space:
mode:
authorLex Neva <lexelby@users.noreply.github.com>2018-06-15 21:42:52 -0400
committerGitHub <noreply@github.com>2018-06-15 21:42:52 -0400
commit28e8efebf2a721239fa996865f9ef228e3521121 (patch)
tree89526b299ab2e55bb69225d26cea781f90bc9bd1 /lib/elements/satin_column.py
parent4a2162e25892da7ce49b944532ebc8f2a9786a28 (diff)
parent350c292f8d0415fefefa83ce5ce84c2b5c17bd75 (diff)
v1.9.1: bug fixes
Lots of bug fixes: * properly handle case where stroke width is not set (defaults to 1 per SVG spec) * properly handle case where <svg> width and height not set (defaults to viewbox) * properly handle case where fill is not set (defaults to "black" rather than "none") * show error message (rather than crashing) if satin column set for a path with only one subpath * don't leave the simulate window around after "use last settings" * show a useful error message in Params if the user hasn't selected anything embroiderable
Diffstat (limited to 'lib/elements/satin_column.py')
-rw-r--r--lib/elements/satin_column.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/elements/satin_column.py b/lib/elements/satin_column.py
index 3593db64..1d13c5e0 100644
--- a/lib/elements/satin_column.py
+++ b/lib/elements/satin_column.py
@@ -97,6 +97,8 @@ class SatinColumn(EmbroideryElement):
def flattened_beziers(self):
if len(self.csp) == 2:
return self.simple_flatten_beziers()
+ elif len(self.csp) < 2:
+ self.fatal(_("satin column: %(id)s: at least two subpaths required (%(num)d found)") % dict(num=len(self.csp), id=self.node.get('id')))
else:
return self.flatten_beziers_with_rungs()