[Libreoffice-commits] core.git: Branch 'libreoffice-7-1' - vcl/unx
Caolán McNamara (via logerrit)
logerrit at kemper.freedesktop.org
Wed Sep 1 18:09:16 UTC 2021
vcl/unx/gtk3/gtk3gtkinst.cxx | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
New commits:
commit 91aab53081045ec0b09d97aa74809774bb2e5f7b
Author: Caolán McNamara <caolanm at redhat.com>
AuthorDate: Wed Sep 1 10:33:09 2021 +0100
Commit: Xisco Fauli <xiscofauli at libreoffice.org>
CommitDate: Wed Sep 1 20:08:43 2021 +0200
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 at libreoffice.org>
diff --git a/vcl/unx/gtk3/gtk3gtkinst.cxx b/vcl/unx/gtk3/gtk3gtkinst.cxx
index 5dd7dc92ffd8..f1f8dde2c923 100644
--- a/vcl/unx/gtk3/gtk3gtkinst.cxx
+++ b/vcl/unx/gtk3/gtk3gtkinst.cxx
@@ -12987,7 +12987,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;
}
More information about the Libreoffice-commits
mailing list