diff options
| author | Kaalleen <36401965+kaalleen@users.noreply.github.com> | 2024-11-01 07:03:08 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-11-01 07:03:08 +0100 |
| commit | 01136316279dd7d73fe1bd6030ca84ea1645a638 (patch) | |
| tree | 14cdf95e24f2b8e2832c863cee9949f947b29897 | |
| parent | 545b4b141330bb82623182bf91fa0d104af110de (diff) | |
Fix 'None'-string confusions in style (#3243)
| -rw-r--r-- | lib/elements/element.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/elements/element.py b/lib/elements/element.py index 5d0f8c0d..ac5cf51f 100644 --- a/lib/elements/element.py +++ b/lib/elements/element.py @@ -174,7 +174,7 @@ class EmbroideryElement(object): def get_style(self, style_name, default=None): element_style = self._get_specified_style() style = element_style.get(style_name, default) - if style == 'none': + if style in ['none', 'None']: style = None elif style == 'currentColor': style = element_style(style_name) |
