Fixed update of sliders' texts into object settings dialog

This commit is contained in:
Enrico Turri 2018-07-13 14:41:49 +02:00
parent 06613e4792
commit d99b484ac6

View File

@ -553,7 +553,8 @@ sub BUILD {
EVT_SLIDER($self->parent, $slider, sub {
if (! $self->disable_change_event) {
$self->textctrl->SetLabel($self->get_value);
# wxTextCtrl::SetLabel() does not work on Linux, use wxTextCtrl::SetValue() instead
$self->textctrl->SetValue($self->get_value);
$self->_on_change($self->option->opt_id);
}
});