diff --git a/lib/elements/satin_column.py b/lib/elements/satin_column.py index 3593db64e..1d13c5e05 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 376437e0e..02d4aba6b 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 \n" "Language-Team: LANGUAGE \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."