summaryrefslogtreecommitdiff
path: root/lib/extensions/params.py
diff options
context:
space:
mode:
Diffstat (limited to 'lib/extensions/params.py')
-rw-r--r--lib/extensions/params.py16
1 files changed, 9 insertions, 7 deletions
diff --git a/lib/extensions/params.py b/lib/extensions/params.py
index d3cb154a..4d04ba23 100644
--- a/lib/extensions/params.py
+++ b/lib/extensions/params.py
@@ -6,6 +6,7 @@ from itertools import groupby
import os
import sys
+
import wx
from wx.lib.scrolledpanel import ScrolledPanel
@@ -460,15 +461,16 @@ class Params(InkstitchExtension):
element = EmbroideryElement(node)
classes = []
- if element.get_style("fill"):
- classes.append(AutoFill)
- classes.append(Fill)
+ if not is_command(node):
+ if element.get_style("fill", "black") is not None:
+ classes.append(AutoFill)
+ classes.append(Fill)
- if element.get_style("stroke") and not is_command(node):
- classes.append(Stroke)
+ if element.get_style("stroke") is not None:
+ classes.append(Stroke)
- if element.get_style("stroke-dasharray") is None:
- classes.append(SatinColumn)
+ if element.get_style("stroke-dasharray") is None:
+ classes.append(SatinColumn)
return classes