extensions/source/propctrlr/usercontrol.cxx |    5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

New commits:
commit 6553ca7a30a23f772842313445e96f2cfc001cb8
Author:     Caolán McNamara <caol...@redhat.com>
AuthorDate: Tue Jul 14 10:21:34 2020 +0100
Commit:     Caolán McNamara <caol...@redhat.com>
CommitDate: Tue Jul 14 17:01:50 2020 +0200

    set max range
    
    Change-Id: Idb44062f91f63a6936d532e59ce3e3347f43ebd0
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/98713
    Tested-by: Jenkins
    Reviewed-by: Caolán McNamara <caol...@redhat.com>

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()
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to