summaryrefslogtreecommitdiff
path: root/xmloff
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2021-06-03 14:15:13 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2021-06-03 18:44:59 +0200
commit06a983b213b8fb71fdac1004868d7b4fdd6a9833 (patch)
tree74f6b8f5e87309eb6a6579854ab4929b7eb94eab /xmloff
parent5ff18d90fda5cda1d06176adac134e6b41f4f393 (diff)
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@collabora.co.uk>
Diffstat (limited to 'xmloff')
-rw-r--r--xmloff/source/core/XMLEmbeddedObjectImportContext.cxx5
1 files changed, 5 insertions, 0 deletions
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(