From 56fba55533ed5a555e7ef184c4399e6497b22315 Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Tue, 15 Dec 2020 16:38:03 +0000 Subject: Related: tdf#138661 don't limit OFormatSampleControl to +10000 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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/+/107785 Tested-by: Jenkins Reviewed-by: Caolán McNamara --- extensions/source/propctrlr/usercontrol.cxx | 2 ++ 1 file changed, 2 insertions(+) (limited to 'extensions/source') 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)); } -- cgit