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:
@@ -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
|
||||
|
Reference in New Issue
Block a user