error if satin column set for path with single subpath

pull/196/head
Lex Neva 2018-06-10 16:01:37 -04:00
rodzic f79b3a7a95
commit 83efa9e02f
2 zmienionych plików z 7 dodań i 1 usunięć

Wyświetl plik

@ -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()

Wyświetl plik

@ -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."