diff options
author | Regina Henschel <rb.henschel@t-online.de> | 2023-05-20 19:26:26 +0200 |
---|---|---|
committer | Regina Henschel <rb.henschel@t-online.de> | 2023-05-21 13:48:47 +0200 |
commit | 58926cc60c7868785c8db126fc199f6731269b86 (patch) | |
tree | bf2842a4576947ce076d310ae66d5863dfe0a0b4 /oox/source/export | |
parent | f0dbebc76b819adebf228fbdb0f25a6ee14187c9 (diff) |
tdf#155412 ooxml export typeface attribute is mandatory
The attribute 'typeface' is required for <a:ea>, <a:cs> and <a:latin>
elements, see CT_TextFont in ISO/IEC 29500-1:2016. Its value may be
the empty string.
Change-Id: I7c9316fa40ad6d1aabccb4191fee11be553c453b
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/152024
Tested-by: Jenkins
Reviewed-by: Regina Henschel <rb.henschel@t-online.de>
Diffstat (limited to 'oox/source/export')
-rw-r--r-- | oox/source/export/ThemeExport.cxx | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/oox/source/export/ThemeExport.cxx b/oox/source/export/ThemeExport.cxx index 511647ee1fc3..f09f9012e246 100644 --- a/oox/source/export/ThemeExport.cxx +++ b/oox/source/export/ThemeExport.cxx @@ -81,7 +81,10 @@ void fillAttrList(rtl::Reference<sax_fastparser::FastAttributeList> const& pAttr model::ThemeFont const& rThemeFont) { if (rThemeFont.maTypeface.isEmpty()) + { + pAttrList->add(XML_typeface, ""); // 'typeface' attribute is mandatory return; + } pAttrList->add(XML_typeface, rThemeFont.maTypeface); |