Fix 'None'-string confusions in style (#3243)

pull/3263/head dev-build-kaalleen-clipped-groups
Kaalleen 2024-11-01 07:03:08 +01:00 zatwierdzone przez GitHub
rodzic 545b4b1413
commit 0113631627
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: B5690EEEBB952194
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -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)