diff options
author | Caolán McNamara <caolanm@redhat.com> | 2021-09-01 10:33:09 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2021-09-01 14:59:09 +0200 |
commit | e8cef7a93170fdca1a66f80184e7c207d3ca376e (patch) | |
tree | 3b00de879f65428f53b183b65bb24684f1e0d2e4 /vcl | |
parent | d69435d357cf14f0c305825cb5122f0fd92f9634 (diff) |
tdf#138519 use gtk_adjustment_set_value instead of gtk_spin_button_set_value
for FormattedSpinButton because the latter doesn't change the value if
the new value is less than an EPSILON diff of 1e-10 from the old value
Change-Id: I410ceec28e1855e53de8c2982e540c612578bf54
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/121438
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/unx/gtk3/gtkinst.cxx | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/vcl/unx/gtk3/gtkinst.cxx b/vcl/unx/gtk3/gtkinst.cxx index 618772dc1921..8cb71eae9554 100644 --- a/vcl/unx/gtk3/gtkinst.cxx +++ b/vcl/unx/gtk3/gtkinst.cxx @@ -16167,7 +16167,10 @@ public: return; m_bSyncingValue = true; disable_notify_events(); - gtk_spin_button_set_value(m_pButton, m_pFormatter->GetValue()); + // tdf#138519 use gtk_adjustment_set_value instead of gtk_spin_button_set_value because the + // latter doesn't change the value if the new value is less than an EPSILON diff of 1e-10 + // from the old value + gtk_adjustment_set_value(gtk_spin_button_get_adjustment(m_pButton), m_pFormatter->GetValue()); enable_notify_events(); m_bSyncingValue = false; } |