filter/source/svg/svgexport.cxx |    6 ++++++
 1 file changed, 6 insertions(+)

New commits:
commit 3b3e58765f9194944b577048db893e152ef1220b
Author:     Marco Cecchetti <marco.cecche...@collabora.com>
AuthorDate: Fri May 13 14:35:17 2022 +0200
Commit:     Aron Budea <aron.bu...@collabora.com>
CommitDate: Mon May 30 05:11:45 2022 +0200

    impress online: not handled transform animation causes core crash
    
    The transform animation uses the svg namespace for some attribute,
    anyway the exporter was not configured for handling attribute with
    such a namespace prepended.
    
    Change-Id: Ia33f55e3589b5743352ec0a156408b374a92509b
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/134354
    Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoff...@gmail.com>
    Reviewed-by: Aron Budea <aron.bu...@collabora.com>

diff --git a/filter/source/svg/svgexport.cxx b/filter/source/svg/svgexport.cxx
index d0eb6b9c6a8c..6022cb966c08 100644
--- a/filter/source/svg/svgexport.cxx
+++ b/filter/source/svg/svgexport.cxx
@@ -370,6 +370,11 @@ SVGExport::SVGExport(
     mbIsUsePositionedCharacters = 
aFilterDataHashMap.getUnpackedValueOrDefault(SVG_PROP_POSITIONED_CHARACTERS, 
false);
 
     // add namespaces
+    GetNamespaceMap_().Add(
+            GetXMLToken(XML_NP_SVG),
+            GetXMLToken(XML_N_SVG_COMPAT),
+            XML_NAMESPACE_SVG);
+
     GetNamespaceMap_().Add(
         GetXMLToken(XML_NP_PRESENTATION),
         GetXMLToken(XML_N_PRESENTATION),
@@ -1054,6 +1059,7 @@ void 
SVGFilter::implExportDocumentHeaderImpressOrDraw(sal_Int32 nDocX, sal_Int32
     mpSVGExport->AddAttribute( XML_NAMESPACE_NONE, "xmlns:presentation", 
"http://sun.com/xmlns/staroffice/presentation"; );
     mpSVGExport->AddAttribute( XML_NAMESPACE_NONE, "xmlns:smil", 
"http://www.w3.org/2001/SMIL20/"; );
     mpSVGExport->AddAttribute( XML_NAMESPACE_NONE, "xmlns:anim", 
"urn:oasis:names:tc:opendocument:xmlns:animation:1.0" );
+    mpSVGExport->AddAttribute( XML_NAMESPACE_NONE, "xmlns:svg", 
"urn:oasis:names:tc:opendocument:xmlns:svg-compatible:1.0" );
     mpSVGExport->AddAttribute( XML_NAMESPACE_NONE, "xml:space", "preserve" );
 
     mpSVGDoc = new SvXMLElementExport( *mpSVGExport, XML_NAMESPACE_NONE, 
"svg", true, true );

Reply via email to