From d9f3476b85b25589735bd93d9f49ec399af60c15 Mon Sep 17 00:00:00 2001 From: Kaalleen <36401965+kaalleen@users.noreply.github.com> Date: Thu, 16 Jan 2025 19:01:21 +0100 Subject: lettering: ignore auto-satin from json when there is no satin (#3434) --- lib/lettering/font.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/lettering/font.py') 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): -- cgit v1.2.3