[Libreoffice-commits] core.git: xmloff/source

Noel Grandin (via logerrit) logerrit at kemper.freedesktop.org
Thu Jun 3 16:46:00 UTC 2021


 xmloff/source/core/XMLEmbeddedObjectImportContext.cxx |    5 +++++
 1 file changed, 5 insertions(+)

New commits:
commit 06a983b213b8fb71fdac1004868d7b4fdd6a9833
Author:     Noel Grandin <noel.grandin at collabora.co.uk>
AuthorDate: Thu Jun 3 14:15:13 2021 +0200
Commit:     Noel Grandin <noel.grandin at collabora.co.uk>
CommitDate: Thu Jun 3 18:44:59 2021 +0200

    tdf#142546 broken formulas in .FODT files
    
    regression from
        commit 81fe31d2c8977791f9b90ab1da4fbb1a778f87fb
        Date:   Tue Nov 3 18:25:10 2020 +0200
        use fastparser in XMLEmbeddedObjectImportContext
    
    Change-Id: Ib5bae81001ae97c574c078c979484f016c7d4323
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/116664
    Tested-by: Jenkins
    Reviewed-by: Noel Grandin <noel.grandin at collabora.co.uk>

diff --git a/xmloff/source/core/XMLEmbeddedObjectImportContext.cxx b/xmloff/source/core/XMLEmbeddedObjectImportContext.cxx
index 79705901cf2d..56ae47bfab05 100644
--- a/xmloff/source/core/XMLEmbeddedObjectImportContext.cxx
+++ b/xmloff/source/core/XMLEmbeddedObjectImportContext.cxx
@@ -135,6 +135,11 @@ void XMLEmbeddedObjectImportContext::SetComponent( Reference< XComponent > const
     xImporter->setTargetDocument( rComp );
 
     xComp = rComp;  // keep ref to component only if there is a handler
+
+    // #i34042: copy namepspace declarations
+    // We created a new instance of XMLImport, so we need to propogate the namespace
+    // declarations to it.
+    pFastHandler->GetNamespaceMap() = GetImport().GetNamespaceMap();
 }
 
 XMLEmbeddedObjectImportContext::XMLEmbeddedObjectImportContext(


More information about the Libreoffice-commits mailing list