summaryrefslogtreecommitdiff
path: root/extensions
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2020-07-14 10:19:03 +0100
committerCaolán McNamara <caolanm@redhat.com>2020-07-14 13:24:24 +0200
commita096a4e89aab69b9bb529e7f35aea8b9c8b26ac1 (patch)
tree7c3fa95f0438518b6f696b9f9c5ea7d55bb4c29b /extensions
parentebbb27eb3970fd9409cbf8b38088620d5132e070 (diff)
set max range
Change-Id: I8fc58f27060636209017f5b0e35844b96693eb21 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/98712 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'extensions')
-rw-r--r--extensions/source/propctrlr/usercontrol.cxx4
1 files changed, 3 insertions, 1 deletions
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()