From baf070a36d52dd1c35473cc04c91501c592bac19 Mon Sep 17 00:00:00 2001 From: Alessandro Ranellucci Date: Fri, 12 Dec 2014 12:34:40 +0100 Subject: [PATCH] Bugfix: workaround for MSW wxWidgets not drawing the slider --- lib/Slic3r/GUI/Plater/2DToolpaths.pm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/Slic3r/GUI/Plater/2DToolpaths.pm b/lib/Slic3r/GUI/Plater/2DToolpaths.pm index f573ccebb7..311e4dea44 100644 --- a/lib/Slic3r/GUI/Plater/2DToolpaths.pm +++ b/lib/Slic3r/GUI/Plater/2DToolpaths.pm @@ -23,7 +23,9 @@ sub new { $self, -1, 0, # default 0, # min - 0, # max + # we set max to a bogus non-zero value because the MSW implementation of wxSlider + # will skip drawing the slider if max <= min: + 1, # max wxDefaultPosition, wxDefaultSize, wxVERTICAL | wxSL_INVERSE,