summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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( )