[Libreoffice-commits] core.git: sw/qa sw/source

Tibor Nagy (via logerrit) logerrit at kemper.freedesktop.org
Fri Aug 7 09:22:55 UTC 2020


 sw/qa/extras/ooxmlexport/data/tdf131420.docx |binary
 sw/qa/extras/ooxmlexport/ooxmlexport12.cxx   |    9 +++++++++
 sw/source/filter/ww8/docxattributeoutput.cxx |    2 ++
 3 files changed, 11 insertions(+)

New commits:
commit 6f22e4e5f93af27fa41bd1054a817df2409fdc62
Author:     Tibor Nagy <nagy.tibor2 at nisz.hu>
AuthorDate: Wed Jul 29 15:50:08 2020 +0200
Commit:     László Németh <nemeth at numbertext.org>
CommitDate: Fri Aug 7 11:22:11 2020 +0200

    tdf#131420 DOCX export: fix missing border of frame
    
    Co-authored-by: Attila Szűcs (NISZ)
    Change-Id: I5afa9532d247a6041a1931ad80c4516e02adbd6a
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/99697
    Tested-by: Jenkins
    Tested-by: László Németh <nemeth at numbertext.org>
    Reviewed-by: László Németh <nemeth at numbertext.org>

diff --git a/sw/qa/extras/ooxmlexport/data/tdf131420.docx b/sw/qa/extras/ooxmlexport/data/tdf131420.docx
new file mode 100644
index 000000000000..fc118345e9e9
Binary files /dev/null and b/sw/qa/extras/ooxmlexport/data/tdf131420.docx differ
diff --git a/sw/qa/extras/ooxmlexport/ooxmlexport12.cxx b/sw/qa/extras/ooxmlexport/ooxmlexport12.cxx
index 739362d71c4c..0222088b2c75 100644
--- a/sw/qa/extras/ooxmlexport/ooxmlexport12.cxx
+++ b/sw/qa/extras/ooxmlexport/ooxmlexport12.cxx
@@ -1084,6 +1084,15 @@ DECLARE_OOXMLEXPORT_TEST(testTdf116883, "tdf116883.docx")
     }
 }
 
+DECLARE_OOXMLEXPORT_TEST(testTdf131420, "tdf131420.docx")
+{
+    xmlDocUniquePtr pXmlDocument = parseExport("word/document.xml");
+    if (!pXmlDocument)
+        return;
+
+    assertXPath(pXmlDocument, "/w:document/w:body/w:p[2]/w:pPr/w:pBdr[2]");
+}
+
 CPPUNIT_PLUGIN_IMPLEMENT();
 
 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/sw/source/filter/ww8/docxattributeoutput.cxx b/sw/source/filter/ww8/docxattributeoutput.cxx
index 4d59477f9d68..f1f440abe290 100644
--- a/sw/source/filter/ww8/docxattributeoutput.cxx
+++ b/sw/source/filter/ww8/docxattributeoutput.cxx
@@ -1236,10 +1236,12 @@ void DocxAttributeOutput::EndParagraphProperties(const SfxItemSet& rParagraphMar
     if (!m_bWritingHeaderFooter && m_pCurrentFrame)
     {
         const SwFrameFormat& rFrameFormat = m_pCurrentFrame->GetFrameFormat();
+        const SvxBoxItem& rBox = rFrameFormat.GetBox();
         if (TextBoxIsFramePr(rFrameFormat))
         {
             const Size aSize = m_pCurrentFrame->GetSize();
             PopulateFrameProperties(&rFrameFormat, aSize);
+            FormatBox(rBox);
         }
     }
 


More information about the Libreoffice-commits mailing list