summaryrefslogtreecommitdiff
path: root/lib/elements/fill.py
diff options
context:
space:
mode:
authorKaalleen <36401965+kaalleen@users.noreply.github.com>2020-05-18 18:46:26 +0200
committerGitHub <noreply@github.com>2020-05-18 18:46:26 +0200
commitc65b437cae365f0bec17aa70815f64eda4336514 (patch)
tree7b6d059bca6aa9ad773bca4c61fc847965286ae8 /lib/elements/fill.py
parent100647694697a3f1037ebdf77379f0eb8d4bd552 (diff)
render single point elements (#701)
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