diff options
| author | Kaalleen <36401965+kaalleen@users.noreply.github.com> | 2025-02-20 19:17:51 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-02-20 19:17:51 +0100 |
| commit | c87f3ecf35deb974d4b20644e90801168f38b9a4 (patch) | |
| tree | a3cd5e52a6486854a3093089b3755f60f4f9861c /lib | |
| parent | 8020c7fa6ea9966f8090599e979ced10bfecdfa4 (diff) | |
fix jump to trim: NoneType element error (#3525)
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/extensions/jump_to_trim.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/extensions/jump_to_trim.py b/lib/extensions/jump_to_trim.py index 56e7d09a..3e859ac5 100644 --- a/lib/extensions/jump_to_trim.py +++ b/lib/extensions/jump_to_trim.py @@ -49,7 +49,8 @@ class JumpToTrim(InkstitchExtension): # do not add a running stitch if the distance is longer than max_jump setting if self.options.max_jump > 0 and line.length > self.options.max_jump * PIXELS_PER_MM: continue - self._add_trim(last_element) + if last_element is not None: + self._add_trim(last_element) last_element = element def _add_trim(self, element): |
