[Libreoffice-commits] core.git: vcl/unx
Caolán McNamara (via logerrit)
logerrit at kemper.freedesktop.org
Tue Jul 14 08:15:25 UTC 2020
vcl/unx/gtk3/gtk3gtkinst.cxx | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
New commits:
commit e200a08f0982cc9f5993deeee03eb8ce2a110e71
Author: Caolán McNamara <caolanm at redhat.com>
AuthorDate: Mon Jul 13 20:43:39 2020 +0100
Commit: Caolán McNamara <caolanm at redhat.com>
CommitDate: Tue Jul 14 10:14:46 2020 +0200
Resolves: tdf#134786 use std::numeric_limits::lowest
Change-Id: I5ef2a2779f2b534d68a8a15b74beb62b2eeefa5d
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/98693
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm at redhat.com>
diff --git a/vcl/unx/gtk3/gtk3gtkinst.cxx b/vcl/unx/gtk3/gtk3gtkinst.cxx
index 348cea8618e7..fb2cc20ca61f 100644
--- a/vcl/unx/gtk3/gtk3gtkinst.cxx
+++ b/vcl/unx/gtk3/gtk3gtkinst.cxx
@@ -12306,8 +12306,8 @@ public:
virtual void sync_range_from_formatter() override
{
disable_notify_events();
- double fMin = m_xFormatter->HasMinValue() ? m_xFormatter->GetMinValue() : DBL_MIN;
- double fMax = m_xFormatter->HasMaxValue() ? m_xFormatter->GetMaxValue() : DBL_MAX;
+ double fMin = m_xFormatter->HasMinValue() ? m_xFormatter->GetMinValue() : std::numeric_limits<double>::lowest();
+ double fMax = m_xFormatter->HasMaxValue() ? m_xFormatter->GetMaxValue() : std::numeric_limits<double>::max();
gtk_spin_button_set_range(m_pButton, fMin, fMax);
enable_notify_events();
}
More information about the Libreoffice-commits
mailing list