summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorJulien Nabet <serval2412@yahoo.fr>2024-01-01 22:40:09 +0100
committerXisco Fauli <xiscofauli@libreoffice.org>2024-01-10 11:11:27 +0100
commitf6e5f36f1070735a975dc527226b78e5ff81bf77 (patch)
treeae5dc891e5302c82a2d22c31cef5e1e9f08641b4 /sw
parent6a0d4247b73d16d7e70ab146aadfbed75721f8bd (diff)
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 <serval2412@yahoo.fr> (cherry picked from commit a254bb2d4fe269a63ccfc1811331272ac88b2523) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/161630 Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org> (cherry picked from commit 24f2ee76dad2bf92d5ed07d278c72d1c82e2a5dc) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/161755
Diffstat (limited to 'sw')
-rw-r--r--sw/source/ui/misc/num.cxx7
1 files changed, 4 insertions, 3 deletions
diff --git a/sw/source/ui/misc/num.cxx b/sw/source/ui/misc/num.cxx
index 15848bf98c4b..480caf4fb47a 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());