summaryrefslogtreecommitdiff
path: root/xmloff
diff options
context:
space:
mode:
authorJulien Nabet <serval2412@yahoo.fr>2020-04-09 00:08:09 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2020-04-09 11:06:40 +0200
commit31de39108ce19c002ab4ef6ab369dd5bfa668634 (patch)
tree8939d8ae965d563716da5710384a35c7ca881866 /xmloff
parentbe89b4376dbba72ca8ca26dd79a5eb0a7588b826 (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/+/91942 Tested-by: Julien Nabet <serval2412@yahoo.fr> Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
Diffstat (limited to 'xmloff')
-rw-r--r--xmloff/source/chart/SchXMLExport.cxx4
1 files changed, 3 insertions, 1 deletions
diff --git a/xmloff/source/chart/SchXMLExport.cxx b/xmloff/source/chart/SchXMLExport.cxx
index 9bf7d7baae3a..07226e89cda2 100644
--- a/xmloff/source/chart/SchXMLExport.cxx
+++ b/xmloff/source/chart/SchXMLExport.cxx
@@ -1418,7 +1418,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,