diff options
author | Marco Cecchetti <marco.cecchetti@collabora.com> | 2022-05-13 14:35:17 +0200 |
---|---|---|
committer | Henry Castro <hcastro@collabora.com> | 2022-05-18 16:42:42 +0200 |
commit | e59c9a7d761f8801e8fde8f842b4d9dea669a084 (patch) | |
tree | d64b9b97fafb051c91f881a11c4fb744793e4ab9 /filter | |
parent | 9eaf70ab2512fab4504d5133a37b101b010b0c34 (diff) |
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/+/134355
Tested-by: Aron Budea <aron.budea@collabora.com>
Reviewed-by: Henry Castro <hcastro@collabora.com>
Diffstat (limited to 'filter')
-rw-r--r-- | filter/source/svg/svgexport.cxx | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/filter/source/svg/svgexport.cxx b/filter/source/svg/svgexport.cxx index b0110e71c297..635bcdf1dd70 100644 --- a/filter/source/svg/svgexport.cxx +++ b/filter/source/svg/svgexport.cxx @@ -366,6 +366,11 @@ SVGExport::SVGExport( // 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), XML_NAMESPACE_PRESENTATION); @@ -1049,6 +1054,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 ); |