diff options
author | Michael Stahl <Michael.Stahl@cib.de> | 2020-08-19 18:12:01 +0200 |
---|---|---|
committer | Michael Stahl <michael.stahl@cib.de> | 2020-08-20 10:56:02 +0200 |
commit | dd7caf3cfd3de636c8bf37c8347c1b72b3772aeb (patch) | |
tree | f02f799b6ccc561b2d5150769a0af56d3e9bf78b /xmloff/source/style | |
parent | 6c55d0ea3952c87aebec7fce76e1cdea1ff981f8 (diff) |
xmloff: ODF export of page style: don't export draw:fill
... attributes on header-style and footer-style in strict ODF.
Change-Id: Ic1af26b6112a5afbb70a82b29dbacd3dcec14ec3
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/101012
Tested-by: Jenkins
Reviewed-by: Michael Stahl <michael.stahl@cib.de>
Diffstat (limited to 'xmloff/source/style')
-rw-r--r-- | xmloff/source/style/PageMasterExportPropMapper.cxx | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/xmloff/source/style/PageMasterExportPropMapper.cxx b/xmloff/source/style/PageMasterExportPropMapper.cxx index 965cdf650c86..2f1a5df943e4 100644 --- a/xmloff/source/style/PageMasterExportPropMapper.cxx +++ b/xmloff/source/style/PageMasterExportPropMapper.cxx @@ -350,7 +350,11 @@ void XMLPageMasterExportPropMapper::ContextFilter( // tdf#103602 don't export draw:fill attributes on page-layout-properties in strict ODF if (!isDrawingPageExport - && aPropMapper->GetEntryAPIName(rProp.mnIndex).startsWith("Fill") + && [](OUString const& rName) -> bool { + return rName.startsWith("Fill") + || rName.startsWith("HeaderFill") + || rName.startsWith("FooterFill"); + } (aPropMapper->GetEntryAPIName(rProp.mnIndex)) && ((aBackgroundImageExport.GetExport().getSaneDefaultVersion() & SvtSaveOptions::ODFSVER_EXTENDED) == 0)) { |