summaryrefslogtreecommitdiff
path: root/sw/source/uibase/frmdlg/frmmgr.cxx
diff options
context:
space:
mode:
authorJonathan Clark <jonathan@libreoffice.org>2024-11-18 10:03:13 -0700
committerJonathan Clark <jonathan@libreoffice.org>2024-11-28 22:10:05 +0100
commit7e4f4a0ccd3c56093dec44c7dcdd14c8b34623c3 (patch)
tree143ed734707df3092338b951af6072ae5e47cd99 /sw/source/uibase/frmdlg/frmmgr.cxx
parentc73e52d295c97e1ce35ad7066d0e92982e897e29 (diff)
tdf#163913 Implement font-relative margins
This change adds loext:margin-left and loext:margin-right, which implement margins that support font-relative units. See tdf#36709 for additional details. Change-Id: I31b0dd2b6f98cb5b02fd4dca3608db6fdee4054c Reviewed-on: https://gerrit.libreoffice.org/c/core/+/177473 Tested-by: Jenkins Reviewed-by: Jonathan Clark <jonathan@libreoffice.org>
Diffstat (limited to 'sw/source/uibase/frmdlg/frmmgr.cxx')
-rw-r--r--sw/source/uibase/frmdlg/frmmgr.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/sw/source/uibase/frmdlg/frmmgr.cxx b/sw/source/uibase/frmdlg/frmmgr.cxx
index cdfeb267b990..275bd4a8cb66 100644
--- a/sw/source/uibase/frmdlg/frmmgr.cxx
+++ b/sw/source/uibase/frmdlg/frmmgr.cxx
@@ -543,10 +543,10 @@ void SwFlyFrameAttrMgr::SetLRSpace( tools::Long nLeft, tools::Long nRight )
OSL_ENSURE( LONG_MAX != nLeft && LONG_MAX != nRight, "Which border to set?" );
SvxLRSpaceItem aTmp( m_aSet.Get( RES_LR_SPACE ) );
- if( LONG_MAX != nLeft )
- aTmp.SetLeft( sal_uInt16(nLeft) );
- if( LONG_MAX != nRight )
- aTmp.SetRight( sal_uInt16(nRight) );
+ if (LONG_MAX != nLeft)
+ aTmp.SetLeft(SvxIndentValue::twips(nLeft));
+ if (LONG_MAX != nRight)
+ aTmp.SetRight(SvxIndentValue::twips(nRight));
m_aSet.Put( aTmp );
}