From 3170fa8f681c26eaba1832a2131ca30a20b18875 Mon Sep 17 00:00:00 2001 From: Markus Mohrhard Date: Sat, 29 Mar 2014 18:45:09 +0100 Subject: export smooth property correctly to OOXML, fdo#74619 MSO 2007 and later have different behavior for the default value. Be explicit and always export the element. Change-Id: Ic8cad67db8c882d3642a6662bf710be2088335b7 --- oox/source/export/chartexport.cxx | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'oox/source/export/chartexport.cxx') diff --git a/oox/source/export/chartexport.cxx b/oox/source/export/chartexport.cxx index b38f308e45a5..2b5f9cef8431 100644 --- a/oox/source/export/chartexport.cxx +++ b/oox/source/export/chartexport.cxx @@ -3021,12 +3021,10 @@ void ChartExport::exportSmooth() sal_Int32 nSplineType = 0; if( GetProperty( xPropSet, "SplineType" ) ) mAny >>= nSplineType; - if( nSplineType != 0 ) - { - pFS->singleElement( FSNS( XML_c, XML_smooth ), - XML_val, "1", + const char* pVal = nSplineType != 0 ? "1" : "0"; + pFS->singleElement( FSNS( XML_c, XML_smooth ), + XML_val, pVal, FSEND ); - } } void ChartExport::exportFirstSliceAng( ) -- cgit