summaryrefslogtreecommitdiff
path: root/extensions
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2020-07-14 10:21:34 +0100
committerCaolán McNamara <caolanm@redhat.com>2020-07-14 17:01:50 +0200
commit6553ca7a30a23f772842313445e96f2cfc001cb8 (patch)
tree9b619546126a66ce379ff6d00b449581091a5b63 /extensions
parentcae6c5d896b8b99269ac2f21cc995f9d69219976 (diff)
set max range
Change-Id: Idb44062f91f63a6936d532e59ce3e3347f43ebd0 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/98713 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'extensions')
-rw-r--r--extensions/source/propctrlr/usercontrol.cxx5
1 files changed, 4 insertions, 1 deletions
diff --git a/extensions/source/propctrlr/usercontrol.cxx b/extensions/source/propctrlr/usercontrol.cxx
index 4fef3424cc7c..65e170299013 100644
--- a/extensions/source/propctrlr/usercontrol.cxx
+++ b/extensions/source/propctrlr/usercontrol.cxx
@@ -164,7 +164,10 @@ namespace pcr
OFormattedNumericControl::OFormattedNumericControl(std::unique_ptr<weld::FormattedSpinButton> xWidget, std::unique_ptr<weld::Builder> xBuilder, bool bReadOnly)
: OFormattedNumericControl_Base(PropertyControlType::Unknown, std::move(xBuilder), std::move(xWidget), bReadOnly)
{
- getTypedControlWindow()->GetFormatter().TreatAsNumber(true);
+ Formatter& rFormatter = getTypedControlWindow()->GetFormatter();
+ rFormatter.TreatAsNumber(true);
+ rFormatter.ClearMinValue();
+ rFormatter.ClearMaxValue();
}
OFormattedNumericControl::~OFormattedNumericControl()