diff options
author | Tibor Nagy <nagy.tibor2@nisz.hu> | 2020-07-29 11:10:04 +0200 |
---|---|---|
committer | László Németh <nemeth@numbertext.org> | 2020-08-07 11:14:46 +0200 |
commit | e5f0c4dd632d3c4a9eea36f65974d6004ac07983 (patch) | |
tree | 410ab83ff6793bf8a54ebf92da1f3d1915fcc99e /sw/qa/extras/ooxmlexport/ooxmlexport15.cxx | |
parent | 75b45d43b53abd457c98f47078ca7ff3c492ce2c (diff) |
tdf#133702 DOCX export: fix frame anchor position
On saving a frame from Writer the anchor moves to the next
paragraph, moving the whole frame lower in the document.
Co-authored-by: Attila Szűcs (NISZ)
Change-Id: Ic47becb323282500871d825c12330b328f5059d1
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/99673
Tested-by: Jenkins
Tested-by: László Németh <nemeth@numbertext.org>
Reviewed-by: László Németh <nemeth@numbertext.org>
Diffstat (limited to 'sw/qa/extras/ooxmlexport/ooxmlexport15.cxx')
-rw-r--r-- | sw/qa/extras/ooxmlexport/ooxmlexport15.cxx | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/sw/qa/extras/ooxmlexport/ooxmlexport15.cxx b/sw/qa/extras/ooxmlexport/ooxmlexport15.cxx index cd9656c94ef7..8c2899046a3b 100644 --- a/sw/qa/extras/ooxmlexport/ooxmlexport15.cxx +++ b/sw/qa/extras/ooxmlexport/ooxmlexport15.cxx @@ -321,6 +321,15 @@ DECLARE_OOXMLEXPORT_TEST(testRelativeAnchorHeightFromBottomMarginNoFooter, assertXPath(pXmlDoc, "//SwAnchoredDrawObject/bounds", "height", "1147"); } +DECLARE_OOXMLEXPORT_EXPORTONLY_TEST(testTdf133702, "tdf133702.docx") +{ + xmlDocUniquePtr pXmlDocument = parseExport("word/document.xml"); + if (!pXmlDocument) + return; + + assertXPath(pXmlDocument, "/w:document/w:body/w:p[1]/w:pPr/w:framePr"); +} + CPPUNIT_PLUGIN_IMPLEMENT(); /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |