Resolves: tdf#130593 set correct range for spinbutton

Change-Id: I6691f2709aa4053798fcc1744f9f41c3c3866a33
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/88554
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
This commit is contained in:
Caolán McNamara
2020-02-12 17:29:42 +00:00
parent 9733174ea0
commit 4a3bb10b2f

View File

@@ -782,8 +782,8 @@ void OFieldDescControl::DisplayData(OFieldDescription* pFieldDescr )
if (pFieldType->nMaximumScale)
{
ActivateAggregate( tpScale );
m_xScale->set_range(std::max<sal_Int32>(pFieldType->nMaximumScale,pFieldDescr->GetScale()),
pFieldType->nMinimumScale);
m_xScale->set_range(pFieldType->nMinimumScale,
std::max<sal_Int32>(pFieldType->nMaximumScale,pFieldDescr->GetScale()));
m_xScale->set_editable(!pFieldType->aCreateParams.isEmpty() && pFieldType->aCreateParams != "PRECISION");
}
else