summaryrefslogtreecommitdiff
path: root/lib/elements
diff options
context:
space:
mode:
Diffstat (limited to 'lib/elements')
-rw-r--r--lib/elements/element.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/elements/element.py b/lib/elements/element.py
index f0b7ea6f..1c67d123 100644
--- a/lib/elements/element.py
+++ b/lib/elements/element.py
@@ -268,8 +268,8 @@ class EmbroideryElement(object):
patches = self.to_patches(last_patch)
if patches:
- patches[-1].trim_after = self.trim_after
- patches[-1].stop_after = self.stop_after
+ patches[-1].trim_after = self.has_command("trim") or self.trim_after
+ patches[-1].stop_after = self.has_command("stop") or self.stop_after
return patches