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

New commits:
commit b7e68d467f99c7db357685adad13f738799009be
Author:     Julien Nabet <serval2...@yahoo.fr>
AuthorDate: Mon Jan 1 22:40:09 2024 +0100
Commit:     Xisco Fauli <xiscofa...@libreoffice.org>
CommitDate: Mon Jan 8 09:48:33 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>
    (cherry picked from commit a254bb2d4fe269a63ccfc1811331272ac88b2523)
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/161630
    Reviewed-by: Xisco Fauli <xiscofa...@libreoffice.org>

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