sw/source/filter/ww8/docxattributeoutput.cxx |    4 ++++
 1 file changed, 4 insertions(+)

New commits:
commit 3a1994d25da59c9acf156db567cbaa284385aca8
Author:     Noel Grandin <[email protected]>
AuthorDate: Fri Oct 31 14:37:37 2025 +0200
Commit:     Miklos Vajna <[email protected]>
CommitDate: Mon Nov 3 13:40:40 2025 +0100

    mso-test: fix ordering of w:rFonts element when writing footer
    
    When loading and then saving the document from ooo94120-1.doc,
    the w:rFonts element is in the wrong order under the w:rPr element.
    
    Use our existing mechanism to enforce correct ordering.
    
    Change-Id: If6aa30ee3114e292456710449dbd0c675dd4c950
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/193323
    Tested-by: Jenkins CollaboraOffice <[email protected]>
    Reviewed-by: Miklos Vajna <[email protected]>

diff --git a/sw/source/filter/ww8/docxattributeoutput.cxx 
b/sw/source/filter/ww8/docxattributeoutput.cxx
index f62d168f2b38..a74fb5735a12 100644
--- a/sw/source/filter/ww8/docxattributeoutput.cxx
+++ b/sw/source/filter/ww8/docxattributeoutput.cxx
@@ -6700,8 +6700,12 @@ void DocxAttributeOutput::WriteOutliner(const 
OutlinerParaObject& rParaObj)
 
             // Write run properties.
             m_pSerializer->startElementNS(XML_w, XML_rPr);
+            // mark() before paragraph mark properties child elements.
+            InitCollectedRunProperties();
             aAttrIter.OutAttr(nCurrentPos);
             WriteCollectedRunProperties();
+            // mergeTopMarks() after paragraph mark properties child elements.
+            m_pSerializer->mergeTopMarks(Tag_InitCollectedRunProperties);
             m_pSerializer->endElementNS(XML_w, XML_rPr);
 
             bool bTextAtr = aAttrIter.IsTextAttr( nCurrentPos );

Reply via email to