summaryrefslogtreecommitdiff
path: root/vcl/unx/gtk3/gtk3gtkinst.cxx
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2021-09-01 10:33:09 +0100
committerAndras Timar <andras.timar@collabora.com>2021-09-07 11:17:58 +0200
commitef953367b6776716a3ddb5af6aafe35b8d28a5c2 (patch)
tree075ab7d5145c55614fb234b3ac225bf5446c31e0 /vcl/unx/gtk3/gtk3gtkinst.cxx
parent0afa30c52c9c7a946163fa33c27ba90a599da6a5 (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/+/121439 Tested-by: Jenkins Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
Diffstat (limited to 'vcl/unx/gtk3/gtk3gtkinst.cxx')
-rw-r--r--vcl/unx/gtk3/gtk3gtkinst.cxx5
1 files changed, 4 insertions, 1 deletions
diff --git a/vcl/unx/gtk3/gtk3gtkinst.cxx b/vcl/unx/gtk3/gtk3gtkinst.cxx
index 8254fdbd0578..cd3d55663742 100644
--- a/vcl/unx/gtk3/gtk3gtkinst.cxx
+++ b/vcl/unx/gtk3/gtk3gtkinst.cxx
@@ -13198,7 +13198,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;
}