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>
This commit is contained in:
Michael Stahl
2020-08-19 18:12:01 +02:00
committed by Michael Stahl
parent 6c55d0ea39
commit dd7caf3cfd

View File

@@ -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))
{