xmloff/source/draw/layerimp.cxx |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit 98c886ae93526a38af825ac66627e1f2d5d4d073
Author:     Noel Grandin <noel.gran...@collabora.co.uk>
AuthorDate: Tue Oct 22 10:20:23 2024 +0200
Commit:     Xisco Fauli <xiscofa...@libreoffice.org>
CommitDate: Tue Oct 22 14:27:49 2024 +0200

    tdf#163516 Draw fails to restore Layer data Title and Description
    
    regression from
        commit c7b7153213619859d5f049b7c60eafa4c81f5225
        Author: Noel Grandin <noelgran...@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.gran...@collabora.co.uk>
    Tested-by: Jenkins
    (cherry picked from commit 75d6fd09138283b4af949d8071ecfee5e2545180)
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/175398
    Reviewed-by: Xisco Fauli <xiscofa...@libreoffice.org>

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);
     }

Reply via email to