summaryrefslogtreecommitdiff
path: root/xmloff
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2024-10-22 10:20:23 +0200
committerXisco Fauli <xiscofauli@libreoffice.org>2024-10-22 14:27:49 +0200
commit98c886ae93526a38af825ac66627e1f2d5d4d073 (patch)
tree0342ab7bb198ab1528df04a6a60ecbdb52043098 /xmloff
parente827d051971a331c16bca8a58ab1c921736810ee (diff)
tdf#163516 Draw fails to restore Layer data Title and Description
regression from commit c7b7153213619859d5f049b7c60eafa4c81f5225 Author: Noel Grandin <noelgrandin@gmail.com> Date: Fri Nov 20 14:24:51 2020 +0200 fastparser in SdXMLLayerContext Change-Id: I0db381fbd383efd23bb254703bea103ca0d270d7 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/175378 Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk> Tested-by: Jenkins (cherry picked from commit 75d6fd09138283b4af949d8071ecfee5e2545180) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/175398 Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
Diffstat (limited to 'xmloff')
-rw-r--r--xmloff/source/draw/layerimp.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/xmloff/source/draw/layerimp.cxx b/xmloff/source/draw/layerimp.cxx
index aa87e0a48100..09812f6ad122 100644
--- a/xmloff/source/draw/layerimp.cxx
+++ b/xmloff/source/draw/layerimp.cxx
@@ -94,11 +94,11 @@ css::uno::Reference< css::xml::sax::XFastContextHandler > SdXMLLayerContext::cre
sal_Int32 nElement,
const css::uno::Reference< css::xml::sax::XFastAttributeList >& )
{
- if( nElement == XML_ELEMENT(SVG, XML_TITLE) )
+ if( nElement == XML_ELEMENT(SVG, XML_TITLE) || nElement == XML_ELEMENT(SVG_COMPAT, XML_TITLE) )
{
return new XMLStringBufferImportContext( GetImport(), sTitleBuffer);
}
- else if( nElement == XML_ELEMENT(SVG, XML_DESC) )
+ else if( nElement == XML_ELEMENT(SVG, XML_DESC) || nElement == XML_ELEMENT(SVG_COMPAT, XML_DESC) )
{
return new XMLStringBufferImportContext( GetImport(), sDescriptionBuffer);
}