diff options
author | Jonathan Clark <jonathan@libreoffice.org> | 2024-11-07 02:23:02 -0700 |
---|---|---|
committer | Jonathan Clark <jonathan@libreoffice.org> | 2024-11-13 09:35:20 +0100 |
commit | d3a59f7a915f9cc0864f2c76ccf90b6cd6fea339 (patch) | |
tree | 79d370eb7e4e66e6e625c24e2e465c6c624b9ddb /sw/source/uibase/shells/txtattr.cxx | |
parent | 510f0837882284d20b49da8ee1f4f909ed54f0b7 (diff) |
tdf#36709 sw: Writer layout for font-relative first-line indent
This change implements layout for font-relative paragraph first-line
indentation in Writer.
Change-Id: Ie8f386bcc13a43ab92d5c15654c24bfdfc62bd69
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/176216
Tested-by: Jenkins
Reviewed-by: Jonathan Clark <jonathan@libreoffice.org>
Diffstat (limited to 'sw/source/uibase/shells/txtattr.cxx')
-rw-r--r-- | sw/source/uibase/shells/txtattr.cxx | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sw/source/uibase/shells/txtattr.cxx b/sw/source/uibase/shells/txtattr.cxx index d1749af5f859..c8ac640ad940 100644 --- a/sw/source/uibase/shells/txtattr.cxx +++ b/sw/source/uibase/shells/txtattr.cxx @@ -771,7 +771,10 @@ void SwTextShell::GetAttrState(SfxItemSet &rSet) SvxFirstLineIndentItem const& rFirstLine(aCoreSet.Get(RES_MARGIN_FIRSTLINE)); SvxTextLeftMarginItem const& rLeftMargin(aCoreSet.Get(RES_MARGIN_TEXTLEFT)); SvxRightMarginItem const& rRightMargin(aCoreSet.Get(RES_MARGIN_RIGHT)); - aLR.SetTextFirstLineOffset(rFirstLine.GetTextFirstLineOffset(), rFirstLine.GetPropTextFirstLineOffset()); + + // tdf#36709: TODO: Handle font-relative units + aLR.SetTextFirstLineOffset(rFirstLine.ResolveTextFirstLineOffset({}), + rFirstLine.GetPropTextFirstLineOffset()); aLR.SetAutoFirst(rFirstLine.IsAutoFirst()); aLR.SetTextLeft(rLeftMargin.GetTextLeft(), rLeftMargin.GetPropLeft()); aLR.SetRight(rRightMargin.GetRight(), rRightMargin.GetPropRight()); |