xmloff/source/draw/layerimp.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
New commits: commit 95d005804c6683910417fbb3e7c9494f07d6b3c0 Author: Noel Grandin <[email protected]> AuthorDate: Tue Oct 22 10:20:23 2024 +0200 Commit: Mike Kaganski <[email protected]> CommitDate: Tue Oct 29 08:20:38 2024 +0100 tdf#163516 Draw fails to restore Layer data Title and Description regression from commit c7b7153213619859d5f049b7c60eafa4c81f5225 Author: Noel Grandin <[email protected]> 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 <[email protected]> Tested-by: Jenkins (cherry picked from commit 75d6fd09138283b4af949d8071ecfee5e2545180) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/175399 Reviewed-by: Xisco Fauli <[email protected]> (cherry picked from commit fcfb116805d27e349622afe7dcfbb2f8f570712a) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/175421 Reviewed-by: Mike Kaganski <[email protected]> Reviewed-by: Stephan Bergmann <[email protected]> Tested-by: Mike Kaganski <[email protected]> diff --git a/xmloff/source/draw/layerimp.cxx b/xmloff/source/draw/layerimp.cxx index eeffae04e997..fae92380a257 100644 --- a/xmloff/source/draw/layerimp.cxx +++ b/xmloff/source/draw/layerimp.cxx @@ -98,11 +98,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); }
