summaryrefslogtreecommitdiff
path: root/lib/extensions
diff options
context:
space:
mode:
Diffstat (limited to 'lib/extensions')
-rw-r--r--lib/extensions/params.py5
-rw-r--r--lib/extensions/stitch_plan_preview.py2
2 files changed, 4 insertions, 3 deletions
diff --git a/lib/extensions/params.py b/lib/extensions/params.py
index 77aab310..194f0cfd 100644
--- a/lib/extensions/params.py
+++ b/lib/extensions/params.py
@@ -449,8 +449,9 @@ class ParamsTab(ScrolledPanel):
box.Add(self.settings_grid, proportion=1, flag=wx.ALL | wx.EXPAND, border=10)
- self.SetSizer(box)
self.update_choice_widgets()
+ self.SetSizer(box)
+ self.SetMinSize((box.CalcMin()[0], 200))
self.Layout()
@@ -638,7 +639,7 @@ class SettingsPanel(wx.Panel):
# otherwise the scrollbar jumps to the side and produces a
# deprecation warning in wxpythons scrolledpanel.py line 225 -
# which is expecting an integer, but uses previously a division
- self.SetSizeHints(500, 400)
+ # self.SetSizeHints(600, 400)
self.Layout()
# end wxGlade
diff --git a/lib/extensions/stitch_plan_preview.py b/lib/extensions/stitch_plan_preview.py
index 42fa37d4..983435bb 100644
--- a/lib/extensions/stitch_plan_preview.py
+++ b/lib/extensions/stitch_plan_preview.py
@@ -55,7 +55,7 @@ class StitchPlanPreview(InkstitchExtension):
stitch_plan = stitch_groups_to_stitch_plan(stitch_groups, collapse_len=collapse_len, min_stitch_len=min_stitch_len)
layer = render_stitch_plan(svg, stitch_plan, realistic, visual_commands, render_jumps=self.options.render_jumps)
- if self.options.ignore_layer:
+ if self.options.ignore_layer and not self.options.mode[-1].isdigit():
add_layer_commands(layer, ["ignore_layer"])
layer = self.rasterize(svg, layer, raster_mult)