summaryrefslogtreecommitdiff
path: root/sw/source/ui
diff options
context:
space:
mode:
authorLaurent BP <laurent.balland-poirier@laposte.net>2019-09-28 12:49:35 +0200
committerCaolán McNamara <caolanm@redhat.com>2019-09-30 20:43:01 +0200
commiteeac5b7a424c3a3be48b1c3583171ad97d1b19cd (patch)
tree62c8e1204ceec7da49b9ffb3ac27676fc752c4dc /sw/source/ui
parentc6bee0aad804c32a4367adc04878648427b06b5a (diff)
tdf#127840 Remove limit to Days offset
Since 6.3 branch, offset in days is rectricted to 1 month, which could be too restricted. In previous versions, this limit was not effective. Change-Id: Iaddf6fe3ae5e8cd937127302917108d6f465ab81 Reviewed-on: https://gerrit.libreoffice.org/79788 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sw/source/ui')
-rw-r--r--sw/source/ui/fldui/flddok.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/ui/fldui/flddok.cxx b/sw/source/ui/fldui/flddok.cxx
index 01346a4b94d8..c9c4dde6c711 100644
--- a/sw/source/ui/fldui/flddok.cxx
+++ b/sw/source/ui/fldui/flddok.cxx
@@ -304,7 +304,7 @@ IMPL_LINK_NOARG(SwFieldDokPage, TypeHdl, weld::TreeView&, void)
m_xDateFT->show();
- m_xDateOffsetED->set_range(-31, 31); // one month
+ m_xDateOffsetED->set_range(INT_MIN, INT_MAX); // no limit
if (IsFieldEdit())
m_xDateOffsetED->set_value( static_cast<SwDateTimeField*>(GetCurField())->GetOffset() / 24 / 60);