summaryrefslogtreecommitdiff
path: root/lib/lettering
diff options
context:
space:
mode:
authorKaalleen <36401965+kaalleen@users.noreply.github.com>2025-01-16 19:01:21 +0100
committerGitHub <noreply@github.com>2025-01-16 19:01:21 +0100
commitd9f3476b85b25589735bd93d9f49ec399af60c15 (patch)
tree162c7eb7440c80e472f8fb248cd467ba790065ca /lib/lettering
parent901ac1430a8a2a488bedb3f2c13485b116abffc1 (diff)
lettering: ignore auto-satin from json when there is no satin (#3434)
Diffstat (limited to 'lib/lettering')
-rw-r--r--lib/lettering/font.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/lettering/font.py b/lib/lettering/font.py
index 6dca4094..1ae08896 100644
--- a/lib/lettering/font.py
+++ b/lib/lettering/font.py
@@ -527,7 +527,7 @@ class Font(object):
elements = nodes_to_elements(group.iterdescendants(SVG_PATH_TAG))
elements = [element for element in elements if isinstance(element, SatinColumn) or isinstance(element, Stroke)]
- if elements:
+ if elements and any(isinstance(element, SatinColumn) for element in elements):
auto_satin(elements, preserve_order=True, trim=False)
def do_color_sort(self, group, color_sort):