summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/elements/auto_fill.py2
-rw-r--r--lib/extensions/params.py4
2 files changed, 3 insertions, 3 deletions
diff --git a/lib/elements/auto_fill.py b/lib/elements/auto_fill.py
index cfee6d7d..9801b610 100644
--- a/lib/elements/auto_fill.py
+++ b/lib/elements/auto_fill.py
@@ -55,7 +55,7 @@ class AutoFill(Fill):
def fill_underlay_angle(self):
underlay_angle = self.get_float_param("fill_underlay_angle")
- if underlay_angle:
+ if underlay_angle is not None:
return math.radians(underlay_angle)
else:
return self.angle + math.pi / 2.0
diff --git a/lib/extensions/params.py b/lib/extensions/params.py
index c301ed1a..f5da7e8b 100644
--- a/lib/extensions/params.py
+++ b/lib/extensions/params.py
@@ -329,7 +329,7 @@ class ParamsTab(ScrolledPanel):
input.Bind(wx.EVT_CHECKBOX, self.changed)
elif len(param.values) > 1:
- input = wx.ComboBox(self, wx.ID_ANY, choices=sorted(param.values), style=wx.CB_DROPDOWN)
+ input = wx.ComboBox(self, wx.ID_ANY, choices=sorted(str(value) for value in param.values), style=wx.CB_DROPDOWN)
input.Bind(wx.EVT_COMBOBOX, self.changed)
input.Bind(wx.EVT_TEXT, self.changed)
else:
@@ -720,7 +720,7 @@ class Params(InkstitchExtension):
getter = 'get_param'
values = filter(lambda item: item is not None,
- (getattr(node, getter)(param.name, str(param.default)) for node in nodes))
+ (getattr(node, getter)(param.name, param.default) for node in nodes))
return values