[Libreoffice-commits] core.git: sdext/source

Kevin Suo (via logerrit) logerrit at kemper.freedesktop.org
Wed Jul 14 16:54:21 UTC 2021


 sdext/source/pdfimport/tree/drawtreevisiting.cxx |    1 +
 1 file changed, 1 insertion(+)

New commits:
commit b1ca6d3aae3b75ec3e5c1ef17d582bcec01fc7eb
Author:     Kevin Suo <suokunlong at 126.com>
AuthorDate: Wed Jul 14 09:44:30 2021 +0800
Commit:     Noel Grandin <noel.grandin at collabora.co.uk>
CommitDate: Wed Jul 14 18:53:44 2021 +0200

    sdext.pdfimport: <text:s> and <text:tab> don't have "text:style-name" attribute
    
    Per OpenDocument specs:
    * The <text:s> element only has a "text:c" attribute.
    * The <text:tab> element only has a text:tab-ref attribute.
    
    seen in the SAL_WARN message:
    warn:xmloff:221658:221658:xmloff/source/text/txtparai.cxx:137: unknown attribute urn:oasis:names:tc:opendocument:xmlns:text:1.0 text:style-name value=text13
    ...
    
    Change-Id: I02a29ac2c9f9db026caec19238cd97111ce587c9
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/118946
    Tested-by: Jenkins
    Reviewed-by: Noel Grandin <noel.grandin at collabora.co.uk>

diff --git a/sdext/source/pdfimport/tree/drawtreevisiting.cxx b/sdext/source/pdfimport/tree/drawtreevisiting.cxx
index 69f70001f6d6..d5ce02ad89bf 100644
--- a/sdext/source/pdfimport/tree/drawtreevisiting.cxx
+++ b/sdext/source/pdfimport/tree/drawtreevisiting.cxx
@@ -126,6 +126,7 @@ void DrawXmlEmitter::visit( TextElement& elem, const std::list< std::unique_ptr<
 
     m_rEmitContext.rEmitter.beginTag( "text:span", aProps );
 
+    aProps = {};
     for(int i=0; i< elem.Text.getLength(); i++)
     {
         OUString strToken=  str.copy(i,1) ;


More information about the Libreoffice-commits mailing list