diff options
author | Kevin Suo <suokunlong@126.com> | 2021-07-14 09:44:30 +0800 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-07-14 18:53:44 +0200 |
commit | b1ca6d3aae3b75ec3e5c1ef17d582bcec01fc7eb (patch) | |
tree | 8d4726c9ca7e06d495fc958c0fa6e0942a98a7c9 /sdext | |
parent | 6a1de4f74e2510029313771d2751b6cd59141acf (diff) |
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@collabora.co.uk>
Diffstat (limited to 'sdext')
-rw-r--r-- | sdext/source/pdfimport/tree/drawtreevisiting.cxx | 1 |
1 files changed, 1 insertions, 0 deletions
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) ; |