diff options
author | Justin Luth <jluth@mail.com> | 2022-08-15 07:33:50 -0400 |
---|---|---|
committer | Michael Stahl <michael.stahl@allotropia.de> | 2022-08-19 11:31:49 +0200 |
commit | ef5a7ab81cdee4c1e861d49ea79b6924a01a8792 (patch) | |
tree | 2c2bdaaadbbd6f533c7691ce7ad765d867d5c0fa | |
parent | 7d410442ad6d04a3da71d8b0f6ceca6e5e30adbf (diff) |
fix tdf#77964 patch: don't change DefaultFormat
I was actually making a chnage to the default frameformat
instead of using a copy of it. Not at all intended.
Change-Id: Idcb27eacd5b536914bc14d6086e730a42105ced3
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/138429
Tested-by: Jenkins
Reviewed-by: Michael Stahl <michael.stahl@allotropia.de>
-rw-r--r-- | sw/source/filter/ww8/ww8par.cxx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sw/source/filter/ww8/ww8par.cxx b/sw/source/filter/ww8/ww8par.cxx index dd8484a389a8..a48893e8cc7a 100644 --- a/sw/source/filter/ww8/ww8par.cxx +++ b/sw/source/filter/ww8/ww8par.cxx @@ -3715,10 +3715,12 @@ bool SwWW8ImplReader::ReadChar(tools::Long nPosCp, tools::Long nCpOfs) pResult = ImportOle(); else if (m_bSpec) { - SwFrameFormat* pAsCharFlyFormat = m_rDoc.GetDfltFrameFormat(); + SwFrameFormat* pAsCharFlyFormat = + m_rDoc.MakeFrameFormat(OUString(), m_rDoc.GetDfltFrameFormat()); SwFormatAnchor aAnchor(RndStdIds::FLY_AS_CHAR); pAsCharFlyFormat->SetFormatAttr(aAnchor); pResult = ImportGraf(nullptr, pAsCharFlyFormat); + m_rDoc.DelFrameFormat(pAsCharFlyFormat); } |