Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/prusa3d/PrusaSlicer.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorEnrico Turri <enricoturri@seznam.cz>2018-07-13 15:45:15 +0300
committerEnrico Turri <enricoturri@seznam.cz>2018-07-13 15:45:15 +0300
commit4805df603796e5a3a06aeb922112797f105c104d (patch)
treefead0c0bafcf99b35e95132ce8b730d681cbf4ff /lib
parent2bf7b02e3a6c7f83f8ae8e959b5b2af75d7c15f3 (diff)
parentd99b484ac6e67f00666530a1d7b78e7506e2ce6c (diff)
Merge branch 'master' of https://github.com/prusa3d/Slic3r into opengl_to_cpp
Diffstat (limited to 'lib')
-rw-r--r--lib/Slic3r/GUI/OptionsGroup/Field.pm5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/Slic3r/GUI/OptionsGroup/Field.pm b/lib/Slic3r/GUI/OptionsGroup/Field.pm
index 4ef2ce2ca..1a53daeb5 100644
--- a/lib/Slic3r/GUI/OptionsGroup/Field.pm
+++ b/lib/Slic3r/GUI/OptionsGroup/Field.pm
@@ -552,8 +552,9 @@ sub BUILD {
$sizer->Add($textctrl, 0, wxALIGN_CENTER_VERTICAL, 0);
EVT_SLIDER($self->parent, $slider, sub {
- if (! $self->disable_change_event) {
- $self->textctrl->SetLabel($self->get_value);
+ if (! $self->disable_change_event) {
+ # wxTextCtrl::SetLabel() does not work on Linux, use wxTextCtrl::SetValue() instead
+ $self->textctrl->SetValue($self->get_value);
$self->_on_change($self->option->opt_id);
}
});