sw/source/filter/ww8/docxattributeoutput.cxx |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

New commits:
commit 4f8e10e92d593019054f393467a6448aa478bfc8
Author:     Noel Grandin <[email protected]>
AuthorDate: Wed Oct 29 10:56:33 2025 +0200
Commit:     Miklos Vajna <[email protected]>
CommitDate: Fri Oct 31 10:25:38 2025 +0100

    mso-test: fix order of webHidden element
    
    When loading and then saving the document from forum-mso-en-11578.docx,
    the w:webHidden element under the w:rPr element is in the wrong order.
    
    Change-Id: I56bf4e989d4d0345bb79a7f95860371085bd49bf
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/193131
    Reviewed-by: Miklos Vajna <[email protected]>
    Tested-by: Jenkins CollaboraOffice <[email protected]>

diff --git a/sw/source/filter/ww8/docxattributeoutput.cxx 
b/sw/source/filter/ww8/docxattributeoutput.cxx
index d233dcae68d4..7c224bb54777 100644
--- a/sw/source/filter/ww8/docxattributeoutput.cxx
+++ b/sw/source/filter/ww8/docxattributeoutput.cxx
@@ -3318,11 +3318,12 @@ void DocxAttributeOutput::StartRunProperties()
 
     m_pSerializer->startElementNS(XML_w, XML_rPr);
 
+    InitCollectedRunProperties();
+
     if(GetExport().m_bHideTabLeaderAndPageNumbers && m_pHyperlinkAttrList.is() 
)
     {
         m_pSerializer->singleElementNS(XML_w, XML_webHidden);
     }
-    InitCollectedRunProperties();
 
     assert( !m_oPostponedGraphic );
     m_oPostponedGraphic.emplace();

Reply via email to