summaryrefslogtreecommitdiff
path: root/lib/elements/fill.py
diff options
context:
space:
mode:
Diffstat (limited to 'lib/elements/fill.py')
-rw-r--r--lib/elements/fill.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/elements/fill.py b/lib/elements/fill.py
index 923bf726..5c6beca5 100644
--- a/lib/elements/fill.py
+++ b/lib/elements/fill.py
@@ -121,7 +121,12 @@ class Fill(EmbroideryElement):
@property
@cache
def paths(self):
- return self.flatten(self.parse_path())
+ paths = self.flatten(self.parse_path())
+ #ensure path length
+ for i, path in enumerate(paths):
+ if len(path) < 3:
+ paths[i] = [(path[0][0], path[0][1]), (path[0][0]+1.0, path[0][1]), (path[0][0], path[0][1]+1.0)]
+ return paths
@property
@cache