summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2020-12-15 16:38:03 +0000
committerCaolán McNamara <caolanm@redhat.com>2020-12-15 20:40:34 +0100
commitc4b1578006473c76302453eae80a1f5d473c1191 (patch)
tree36de2027fad5bd9c832dbf13b3fa1896f2de7c13
parent402316c8df19ec9714a39ff5d7863d03dbe93720 (diff)
Related: tdf#138661 don't limit OFormatSampleControl to +10000
let it take any value, so the date preview can show todays date and not an arbitrary max value from the past Change-Id: Ia6f47d44c68c15293e2adcd950724ee2cef024d1 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/107712 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
-rw-r--r--extensions/source/propctrlr/usercontrol.cxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/extensions/source/propctrlr/usercontrol.cxx b/extensions/source/propctrlr/usercontrol.cxx
index 65e170299013..74390e1fcde2 100644
--- a/extensions/source/propctrlr/usercontrol.cxx
+++ b/extensions/source/propctrlr/usercontrol.cxx
@@ -81,6 +81,8 @@ namespace pcr
{
Formatter& rFieldFormatter = m_xSpinButton->GetFormatter();
rFieldFormatter.TreatAsNumber(true);
+ rFieldFormatter.ClearMinValue();
+ rFieldFormatter.ClearMaxValue();
m_xEntry->connect_key_press(LINK(this, OFormatSampleControl, KeyInputHdl));
}