summaryrefslogtreecommitdiff
path: root/lib/elements/element.py
diff options
context:
space:
mode:
Diffstat (limited to 'lib/elements/element.py')
-rw-r--r--lib/elements/element.py7
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