From 2235ec6571601e12be7eb3c74907668fb68bebd4 Mon Sep 17 00:00:00 2001 From: Kaalleen <36401965+kaalleen@users.noreply.github.com> Date: Fri, 11 Jul 2025 22:14:52 +0200 Subject: Fix issue with bad color names (#3816) * fix issue with bad color names and define element colors at one place and reuse * fix bad tartan color * verify color in gradient block * add thread color tests * use default color behavior for elements linked to non-existing definitions (gradients) * Added mypy change for tests (authored by: CapellanCitizen) --- lib/update.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/update.py') diff --git a/lib/update.py b/lib/update.py index e1b62cab..2055da7d 100644 --- a/lib/update.py +++ b/lib/update.py @@ -170,7 +170,7 @@ def _update_to_one(element): # noqa: C901 element.set_param('running_stitch_length_mm', 1.5) # convert legacy stroke_method - if element.get_style("stroke") and not element.node.get('inkscape:connection-start', None): + if element.stroke_color and not element.node.get('inkscape:connection-start', None): # manual stitch legacy_manual_stitch = element.get_boolean_param('manual_stitch', False) if legacy_manual_stitch is True: -- cgit v1.2.3