From b1ca6d3aae3b75ec3e5c1ef17d582bcec01fc7eb Mon Sep 17 00:00:00 2001 From: Kevin Suo Date: Wed, 14 Jul 2021 09:44:30 +0800 Subject: sdext.pdfimport: and don't have "text:style-name" attribute Per OpenDocument specs: * The element only has a "text:c" attribute. * The 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 --- sdext/source/pdfimport/tree/drawtreevisiting.cxx | 1 + 1 file changed, 1 insertion(+) (limited to 'sdext') 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) ; -- cgit