diff options
author | Enrico Turri <enricoturri@seznam.cz> | 2018-07-13 15:41:49 +0300 |
---|---|---|
committer | Enrico Turri <enricoturri@seznam.cz> | 2018-07-13 15:41:49 +0300 |
commit | d99b484ac6e67f00666530a1d7b78e7506e2ce6c (patch) | |
tree | 862e4d4149e6cd7fceb03208c3f3bcbfa1625301 | |
parent | 06613e47925834b2a7056b5bb178a4da0e37da8c (diff) |
Fixed update of sliders' texts into object settings dialogversion_1.41.0-alpha
-rw-r--r-- | lib/Slic3r/GUI/OptionsGroup/Field.pm | 5 |
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); } }); |