diff options
author | Julien Nabet <serval2412@yahoo.fr> | 2020-04-09 00:08:09 +0200 |
---|---|---|
committer | Michael Stahl <michael.stahl@cib.de> | 2020-04-10 18:23:12 +0200 |
commit | 07da4d775c7fa4a2d3bef5f71995317c9feb91f6 (patch) | |
tree | 0626231f35b2180a4e17a71e3f9c1643b99f09e6 /xmloff | |
parent | baa18b4b4c7d94589a9d2aeac6e62f79103c0f16 (diff) |
tdf#131966: chart legend attribs width and height unknown for ODF 1.2 (strict)
Change-Id: Ie4cb7d2c9e5fb7bca88287fcaff03d5c9ca04b8b
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/91899
Tested-by: Jenkins
Reviewed-by: Michael Stahl <michael.stahl@cib.de>
Diffstat (limited to 'xmloff')
-rw-r--r-- | xmloff/source/chart/SchXMLExport.cxx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/xmloff/source/chart/SchXMLExport.cxx b/xmloff/source/chart/SchXMLExport.cxx index 202ecf970fd3..efa8a6873973 100644 --- a/xmloff/source/chart/SchXMLExport.cxx +++ b/xmloff/source/chart/SchXMLExport.cxx @@ -1383,7 +1383,9 @@ void SchXMLExportHelper_Impl::parseDocument( Reference< chart::XChartDocument > if( nLegendExpansion == chart::ChartLegendExpansion_CUSTOM) { awt::Size aSize( xLegendShape->getSize() ); - addSize( aSize, true ); + // tdf#131966: chart legend attributes width and height shouldn't be exported to ODF 1.2 (strict) + if (nCurrentODFVersion > SvtSaveOptions::ODFVER_012) + addSize( aSize, true ); OUStringBuffer aAspectRatioString; ::sax::Converter::convertDouble( aAspectRatioString, |