diff options
author | Julien Nabet <serval2412@yahoo.fr> | 2022-04-23 18:17:57 +0200 |
---|---|---|
committer | Julien Nabet <serval2412@yahoo.fr> | 2022-04-25 18:20:23 +0200 |
commit | 176021427fece6363df56022b63813e93505fdc2 (patch) | |
tree | ea5a9c6e6e32f20f38ad9f08bb7e14b023382f07 /cui | |
parent | 9500e2d971150e0555980a7ae73da014ad83c95c (diff) |
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>
Diffstat (limited to 'cui')
-rw-r--r-- | cui/source/tabpages/numpages.cxx | 8 |
1 files changed, 8 insertions, 0 deletions
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); |