tdf#136429: use FieldUnit value for min/max of some fields of numbering dialog

Change-Id: I01428703a7bdb2090fd145e5373c37aff0d386ac
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/133348
Tested-by: Jenkins
Tested-by: Julien Nabet <serval2412@yahoo.fr>
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
This commit is contained in:
Julien Nabet 2022-04-23 18:17:57 +02:00
parent 9500e2d971
commit 176021427f

View file

@ -29,6 +29,7 @@
#include <svl/eitem.hxx>
#include <vcl/svapp.hxx>
#include <svx/colorbox.hxx>
#include <svx/dlgutil.hxx>
#include <svx/strarray.hxx>
#include <svx/gallery.hxx>
#include <editeng/brushitem.hxx>
@ -2489,6 +2490,13 @@ SvxNumPositionTabPage::SvxNumPositionTabPage(weld::Container* pPage, weld::Dialo
{
SetExchangeSupport();
// set metric
FieldUnit eFUnit = GetModuleFieldUnit(rSet);
SetFieldUnit( *m_xDistBorderMF, eFUnit );
SetFieldUnit( *m_xIndentMF, eFUnit );
SetFieldUnit( *m_xDistNumMF, eFUnit );
m_xAlignedAtMF->set_range(0, SAL_MAX_INT32, FieldUnit::NONE);
m_xListtabMF->set_range(0, SAL_MAX_INT32, FieldUnit::NONE);
m_xIndentAtMF->set_range(0, SAL_MAX_INT32, FieldUnit::NONE);