diff options
| author | Lex Neva <github.com@lexneva.name> | 2018-06-10 16:01:37 -0400 |
|---|---|---|
| committer | Lex Neva <github.com@lexneva.name> | 2018-06-10 16:03:12 -0400 |
| commit | 83efa9e02fc19a1f4bb0e1524aa601c48c5ca6ef (patch) | |
| tree | 224c6d9a4e830f78331ea5eaacc0c00e1f2d0edf /lib/elements | |
| parent | f79b3a7a95bba7d927cefd321d52eff819bb9180 (diff) | |
error if satin column set for path with single subpath
Diffstat (limited to 'lib/elements')
| -rw-r--r-- | lib/elements/satin_column.py | 2 |
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() |
