From bf42ef00ca315e78c0069c01d97517e3786f2135 Mon Sep 17 00:00:00 2001 From: Kaalleen <36401965+kaalleen@users.noreply.github.com> Date: Sat, 11 May 2024 08:14:40 +0200 Subject: Update inkex (#2892) * fix currentColor * fix pip inkex import * fix color block extension --- lib/elements/element.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'lib/elements/element.py') diff --git a/lib/elements/element.py b/lib/elements/element.py index c4e1d640..5c463c53 100644 --- a/lib/elements/element.py +++ b/lib/elements/element.py @@ -11,7 +11,7 @@ import numpy as np from inkex import bezier, BaseElement from ..commands import find_commands -from ..debug import debug +from ..debug.debug import debug from ..exceptions import InkstitchException, format_uncaught_exception from ..i18n import _ from ..marker import get_marker_elements_cache_key_data @@ -169,9 +169,12 @@ class EmbroideryElement(object): return self.node.specified_style() def get_style(self, style_name, default=None): - style = self._get_specified_style().get(style_name, default) + element_style = self._get_specified_style() + style = element_style.get(style_name, default) if style == 'none': style = None + elif style == 'currentColor': + style = element_style(style_name) return style @property -- cgit v1.2.3