[Libreoffice-commits] core.git: Branch 'libreoffice-7-0' - extensions/source

Caolán McNamara (via logerrit) logerrit at kemper.freedesktop.org
Tue Jul 14 11:24:55 UTC 2020


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

New commits:
commit a096a4e89aab69b9bb529e7f35aea8b9c8b26ac1
Author:     Caolán McNamara <caolanm at redhat.com>
AuthorDate: Tue Jul 14 10:19:03 2020 +0100
Commit:     Caolán McNamara <caolanm at redhat.com>
CommitDate: Tue Jul 14 13:24:24 2020 +0200

    set max range
    
    Change-Id: I8fc58f27060636209017f5b0e35844b96693eb21
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/98712
    Tested-by: Jenkins
    Reviewed-by: Caolán McNamara <caolanm at redhat.com>

diff --git a/extensions/source/propctrlr/usercontrol.cxx b/extensions/source/propctrlr/usercontrol.cxx
index cab4402c77d8..b2abc87e8723 100644
--- a/extensions/source/propctrlr/usercontrol.cxx
+++ b/extensions/source/propctrlr/usercontrol.cxx
@@ -158,7 +158,9 @@ 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()->treat_as_number(true);
+        weld::FormattedSpinButton* pSpinButton = getTypedControlWindow();
+        pSpinButton->treat_as_number(true);
+        pSpinButton->set_range(std::numeric_limits<int>::min(), std::numeric_limits<int>::max());
     }
 
     OFormattedNumericControl::~OFormattedNumericControl()


More information about the Libreoffice-commits mailing list