summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2020-07-13 20:43:39 +0100
committerCaolán McNamara <caolanm@redhat.com>2020-07-14 10:14:46 +0200
commite200a08f0982cc9f5993deeee03eb8ce2a110e71 (patch)
tree75008fb0a730e921cdb93ce09a5a20b8e7734fba /vcl
parent0a3e5ba4db254549c15e55984f1764a352c8239b (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>
Diffstat (limited to 'vcl')
-rw-r--r--vcl/unx/gtk3/gtk3gtkinst.cxx4
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();
}