summaryrefslogtreecommitdiff
path: root/oox
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@googlemail.com>2014-03-29 18:45:09 +0100
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2014-03-30 17:07:48 +0200
commit3170fa8f681c26eaba1832a2131ca30a20b18875 (patch)
treef640fca4a39d81145d5b9ac51dd1b622af00213c /oox
parentf8f28ae91d9a57fdf9d39105ea5537fc7e95fa84 (diff)
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
Diffstat (limited to 'oox')
-rw-r--r--oox/source/export/chartexport.cxx8
1 files changed, 3 insertions, 5 deletions
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( )