diff options
| author | Kaalleen <36401965+kaalleen@users.noreply.github.com> | 2024-05-11 08:14:40 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-05-11 08:14:40 +0200 |
| commit | bf42ef00ca315e78c0069c01d97517e3786f2135 (patch) | |
| tree | 100619af8d29613a47fb0cb08414afdc270cf6d7 /lib/elements/element.py | |
| parent | 19b59aa2f4e94d7ac32e37aaa74aed7f99340859 (diff) | |
Update inkex (#2892)
* fix currentColor
* fix pip inkex import
* fix color block extension
Diffstat (limited to 'lib/elements/element.py')
| -rw-r--r-- | lib/elements/element.py | 7 |
1 files changed, 5 insertions, 2 deletions
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 |
