cui/source/tabpages/numpages.cxx | 8 ++++++++ 1 file changed, 8 insertions(+)
New commits: commit 524cddada9707305e08daa9a6940a70c0539761e Author: Julien Nabet <serval2...@yahoo.fr> AuthorDate: Sat Apr 23 18:17:57 2022 +0200 Commit: Adolfo Jayme Barrientos <fit...@ubuntu.com> CommitDate: Tue Apr 26 09:40:38 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 (cherry picked from commit 176021427fece6363df56022b63813e93505fdc2) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/133399 Tested-by: Jenkins Reviewed-by: Adolfo Jayme Barrientos <fit...@ubuntu.com> diff --git a/cui/source/tabpages/numpages.cxx b/cui/source/tabpages/numpages.cxx index ade080a1436a..7d2683ab3ed4 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> @@ -2506,6 +2507,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);