lettering: do not add commands on top of command connectors (#3528)

pull/3530/head
Kaalleen 2025-02-21 13:35:24 +01:00 zatwierdzone przez GitHub
rodzic c87f3ecf35
commit 10fdc509f5
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: B5690EEEBB952194
1 zmienionych plików z 2 dodań i 2 usunięć

Wyświetl plik

@ -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)