summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKaalleen <36401965+kaalleen@users.noreply.github.com>2024-09-30 10:57:26 +0200
committerGitHub <noreply@github.com>2024-09-30 10:57:26 +0200
commit51852376434a39f86278ae104f945c0f94b6e93e (patch)
treebb8c22553a1d4468ddac5954437f253d18e7c5f5
parentc685d867f4d86d9547bda63bb6bf4a965e3ef1e5 (diff)
fix gradient style (#3200)
-rw-r--r--lib/elements/element.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/elements/element.py b/lib/elements/element.py
index 8884bc2a..5d0f8c0d 100644
--- a/lib/elements/element.py
+++ b/lib/elements/element.py
@@ -563,7 +563,7 @@ class EmbroideryElement(object):
if hasattr(self, 'gradient') and self.gradient is not None:
gradient['stops'] = self.gradient.stop_offsets
gradient['orientation'] = [self.gradient.x1(), self.gradient.x2(), self.gradient.y1(), self.gradient.y2()]
- gradient['styles'] = [(style['stop-color'], style['stop-opacity']) for style in self.gradient.stop_styles]
+ gradient['styles'] = [(stop.style('stop-color'), stop.style('stop-opacity')) for stop in self.gradient.stops]
return gradient
def _get_tartan_key_data(self):