cui/source/tabpages/numpages.cxx | 8 ++++++++ 1 file changed, 8 insertions(+)
New commits: commit 176021427fece6363df56022b63813e93505fdc2 Author: Julien Nabet <serval2...@yahoo.fr> AuthorDate: Sat Apr 23 18:17:57 2022 +0200 Commit: Julien Nabet <serval2...@yahoo.fr> CommitDate: Mon Apr 25 18:20:23 2022 +0200 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 <serval2...@yahoo.fr> Reviewed-by: Julien Nabet <serval2...@yahoo.fr> diff --git a/cui/source/tabpages/numpages.cxx b/cui/source/tabpages/numpages.cxx index a7de509c30bd..ebdb55ad06da 100644 --- a/cui/source/tabpages/numpages.cxx +++ b/cui/source/tabpages/numpages.cxx @@ -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);