summaryrefslogtreecommitdiff
path: root/sw/source/ui/envelp
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/ui/envelp
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/ui/envelp')
-rw-r--r--sw/source/ui/envelp/envfmt.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/ui/envelp/envfmt.cxx b/sw/source/ui/envelp/envfmt.cxx
index cea77abbdb80..8e635e0eebff 100644
--- a/sw/source/ui/envelp/envfmt.cxx
+++ b/sw/source/ui/envelp/envfmt.cxx
@@ -223,7 +223,7 @@ void SwEnvFormatPage::Edit(std::u16string_view rIdent, bool bSender)
aTmpSet.Put( aTabPos );
// left border as offset
- const tools::Long nOff = aTmpSet.Get(RES_MARGIN_TEXTLEFT).GetTextLeft();
+ const tools::Long nOff = aTmpSet.Get(RES_MARGIN_TEXTLEFT).ResolveTextLeft({});
SfxInt32Item aOff( SID_ATTR_TABSTOP_OFFSET, nOff );
aTmpSet.Put( aOff );