summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Stahl <michael.stahl@allotropia.de>2023-03-01 13:25:02 +0100
committerMichael Stahl <michael.stahl@allotropia.de>2023-03-01 17:52:01 +0000
commit21bb933f381321a58bffee8d3d392dee0e8b0c87 (patch)
treefe88de6b54112194c7e3ba93a4201bc35093ab63
parent96537cd4654df65bcde3f2ccde053800210a9d33 (diff)
ofz#56382 sw: HTML import: init items with WhichId
(regression from commit db115bec9254417ef7a3faf687478fe5424ab378) Change-Id: Ib4865ad1423f0dafb20b376a9d00eaf450b8f271 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/148049 Reviewed-by: Michael Stahl <michael.stahl@allotropia.de> Tested-by: Jenkins
-rw-r--r--sw/source/filter/html/swhtml.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/sw/source/filter/html/swhtml.cxx b/sw/source/filter/html/swhtml.cxx
index 14dc6b67b2b7..641bc3d87d1e 100644
--- a/sw/source/filter/html/swhtml.cxx
+++ b/sw/source/filter/html/swhtml.cxx
@@ -5369,16 +5369,16 @@ void SwHTMLParser::InsertHorzRule()
switch( eAdjust )
{
case SvxAdjust::Right:
- oLeft.emplace(o3tl::narrowing<sal_uInt16>(nDist), RES_MARGIN_RIGHT);
+ oLeft.emplace(o3tl::narrowing<sal_uInt16>(nDist), RES_MARGIN_TEXTLEFT);
break;
case SvxAdjust::Left:
- oRight.emplace(o3tl::narrowing<sal_uInt16>(nDist));
+ oRight.emplace(o3tl::narrowing<sal_uInt16>(nDist), RES_MARGIN_RIGHT);
break;
case SvxAdjust::Center:
default:
nDist /= 2;
- oLeft.emplace(o3tl::narrowing<sal_uInt16>(nDist));
- oRight.emplace(o3tl::narrowing<sal_uInt16>(nDist));
+ oLeft.emplace(o3tl::narrowing<sal_uInt16>(nDist), RES_MARGIN_TEXTLEFT);
+ oRight.emplace(o3tl::narrowing<sal_uInt16>(nDist), RES_MARGIN_RIGHT);
break;
}