diff options
author | Attila Bakos <bakos.attilakaroly@nisz.hu> | 2020-05-14 12:38:28 +0200 |
---|---|---|
committer | László Németh <nemeth@numbertext.org> | 2020-05-21 11:58:48 +0200 |
commit | 45fe51bca2ab534cfe1139b734d839728225d6d9 (patch) | |
tree | b029617d82bfb079ec6cf56a38a1f1777fd84205 /sw/source | |
parent | 0512a4ae7521cdcdaf381710ce4edb57e01b0fef (diff) |
tdf#133035 DOCX export: fix position of unnamed OLE
Position export depended on OLE object names, instead of the
type of anchoring.
Follow-up of commit 2150fdc7d0f63288ac56c33cb898589512057642
(tdf#131539 DOCX export: fix position of OLE objects).
Co-authored-by: Tibor Nagy (NISZ)
Change-Id: Ib98a19cb012047f37a5830c81541ef00c55589dd
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/94190
Tested-by: László Németh <nemeth@numbertext.org>
Reviewed-by: László Németh <nemeth@numbertext.org>
Diffstat (limited to 'sw/source')
-rw-r--r-- | sw/source/filter/ww8/docxattributeoutput.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/filter/ww8/docxattributeoutput.cxx b/sw/source/filter/ww8/docxattributeoutput.cxx index a5aa741447af..590fcfdad6ae 100644 --- a/sw/source/filter/ww8/docxattributeoutput.cxx +++ b/sw/source/filter/ww8/docxattributeoutput.cxx @@ -5545,7 +5545,7 @@ void DocxAttributeOutput::WriteOLE( SwOLENode& rNode, const Size& rSize, const S //This string will store the relative position for aPos OString aAnch; - if (!rFlyFrameFormat->GetName().isEmpty()) + if (rFlyFrameFormat && rFlyFrameFormat->GetAnchor().GetAnchorId() != RndStdIds::FLY_AS_CHAR) { //Get the horizontal alignment of the OLE via the frame format, to aHAlign OString aHAlign = convertToOOXMLHoriOrient(rFlyFrameFormat->GetHoriOrient().GetHoriOrient(), |