summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLex Neva <github.com@lexneva.name>2018-06-10 16:01:37 -0400
committerLex Neva <github.com@lexneva.name>2018-06-10 16:03:12 -0400
commit83efa9e02fc19a1f4bb0e1524aa601c48c5ca6ef (patch)
tree224c6d9a4e830f78331ea5eaacc0c00e1f2d0edf
parentf79b3a7a95bba7d927cefd321d52eff819bb9180 (diff)
error if satin column set for path with single subpath
-rw-r--r--lib/elements/satin_column.py2
-rw-r--r--messages.po6
2 files changed, 7 insertions, 1 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()
diff --git a/messages.po b/messages.po
index 376437e0..02d4aba6 100644
--- a/messages.po
+++ b/messages.po
@@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: PROJECT VERSION\n"
"Report-Msgid-Bugs-To: EMAIL@ADDRESS\n"
-"POT-Creation-Date: 2018-06-01 20:34-0400\n"
+"POT-Creation-Date: 2018-06-10 16:01-0400\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
@@ -124,6 +124,10 @@ msgstr ""
msgid "Inset amount (default: half of contour underlay inset)"
msgstr ""
+#, python-format
+msgid "satin column: %(id)s: at least two subpaths required (%(num)d found)"
+msgstr ""
+
msgid ""
"One or more rails crosses itself, and this is not allowed. Please split "
"into multiple satin columns."