diff options
author | Caolán McNamara <caolanm@redhat.com> | 2020-07-13 20:43:39 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2020-07-14 10:14:46 +0200 |
commit | e200a08f0982cc9f5993deeee03eb8ce2a110e71 (patch) | |
tree | 75008fb0a730e921cdb93ce09a5a20b8e7734fba | |
parent | 0a3e5ba4db254549c15e55984f1764a352c8239b (diff) |
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@redhat.com>
-rw-r--r-- | vcl/unx/gtk3/gtk3gtkinst.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
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(); } |