sw/source/ui/misc/num.cxx |    7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

New commits:
commit 109e5e54a159b07314429dc004256c6ae2e799b1
Author:     Julien Nabet <serval2...@yahoo.fr>
AuthorDate: Mon Jan 1 22:40:09 2024 +0100
Commit:     Julien Nabet <serval2...@yahoo.fr>
CommitDate: Thu Jan 4 14:38:34 2024 +0100

    tdf#155649: EDITING Writer some position parameters cannot go beyond 17 mm
    
    Change-Id: I70a80527dcc1c714fbe8783d1c4594bcc26b0624
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/161528
    Tested-by: Jenkins
    Reviewed-by: Julien Nabet <serval2...@yahoo.fr>

diff --git a/sw/source/ui/misc/num.cxx b/sw/source/ui/misc/num.cxx
index 91e075d26124..fadef2466205 100644
--- a/sw/source/ui/misc/num.cxx
+++ b/sw/source/ui/misc/num.cxx
@@ -81,6 +81,10 @@ SwNumPositionTabPage::SwNumPositionTabPage(weld::Container* 
pPage, weld::DialogC
 {
     SetExchangeSupport();
 
+    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);
+
     m_xLevelLB->set_selection_mode(SelectionMode::Multiple);
 
     m_xRelativeCB->set_active(true);
@@ -494,9 +498,6 @@ void SwNumPositionTabPage::SetWrtShell(SwWrtShell* pSh)
     m_xDistBorderMF->set_max(m_xDistBorderMF->normalize( nWidth ), 
FieldUnit::TWIP );
     m_xDistNumMF->set_max(m_xDistNumMF->normalize( nWidth ), FieldUnit::TWIP);
     m_xIndentMF->set_max(m_xIndentMF->normalize( nWidth ), FieldUnit::TWIP );
-    m_xListtabMF->set_max(m_xListtabMF->normalize( nWidth ), FieldUnit::TWIP );
-    m_xAlignedAtMF->set_max(m_xAlignedAtMF->normalize( nWidth ), 
FieldUnit::TWIP );
-    m_xIndentAtMF->set_max(m_xIndentAtMF->normalize( nWidth ), FieldUnit::TWIP 
);
 
     const SwRect& rPrtRect = m_pWrtSh->GetAnyCurRect(CurRectType::Page);
     m_aPreviewWIN.SetPageWidth(rPrtRect.Width());

Reply via email to