summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorKaalleen <36401965+kaalleen@users.noreply.github.com>2025-02-21 13:35:24 +0100
committerGitHub <noreply@github.com>2025-02-21 13:35:24 +0100
commit10fdc509f526c68acbb2ae2de226bc5f80e88208 (patch)
treefcdc28e36a64d348dda9b93cd6a0819758b2fc51 /lib
parentc87f3ecf35deb974d4b20644e90801168f38b9a4 (diff)
lettering: do not add commands on top of command connectors (#3528)
Diffstat (limited to 'lib')
-rw-r--r--lib/lettering/font.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/lettering/font.py b/lib/lettering/font.py
index cb399890..383b3707 100644
--- a/lib/lettering/font.py
+++ b/lib/lettering/font.py
@@ -519,9 +519,9 @@ class Font(object):
for value in elements.values():
self._add_trim_to_element(Stroke(value), use_trim_symbols)
else:
- # find the last path that does not carry a marker and add a trim there
+ # find the last path that does not carry a marker or belongs to a visual command and add a trim there
for path_child in group.iterdescendants(EMBROIDERABLE_TAGS):
- if not has_marker(path_child):
+ if not has_marker(path_child) and not path_child.get_id().startswith('command_connector'):
path = path_child
element = Stroke(path)
self._add_trim_to_element(element, use_trim_symbols)