summaryrefslogtreecommitdiff
path: root/oox
diff options
context:
space:
mode:
Diffstat (limited to 'oox')
-rw-r--r--oox/source/drawingml/chart/seriescontext.cxx15
-rw-r--r--oox/source/drawingml/chart/typegroupcontext.cxx5
2 files changed, 12 insertions, 8 deletions
diff --git a/oox/source/drawingml/chart/seriescontext.cxx b/oox/source/drawingml/chart/seriescontext.cxx
index 4bf61e53d36e..fde29520cb1e 100644
--- a/oox/source/drawingml/chart/seriescontext.cxx
+++ b/oox/source/drawingml/chart/seriescontext.cxx
@@ -582,8 +582,9 @@ ContextHandlerRef LineSeriesContext::onCreateContext( sal_Int32 nElement, const
case C_TOKEN( marker ):
return this;
case C_TOKEN( smooth ):
- // default is 'false', not 'true' as specified
- mrModel.mbSmooth = rAttribs.getBool( XML_val, false );
+ // TODO: fix for MSO 2007 behavior
+ // MSO 2007 writes false by default and not true
+ mrModel.mbSmooth = rAttribs.getBool( XML_val, true );
return 0;
case C_TOKEN( trendline ):
return new TrendlineContext( *this, mrModel.maTrendlines.create() );
@@ -657,8 +658,9 @@ ContextHandlerRef RadarSeriesContext::onCreateContext( sal_Int32 nElement, const
case C_TOKEN( marker ):
return this;
case C_TOKEN( smooth ):
- // default is 'false', not 'true' as specified
- mrModel.mbSmooth = rAttribs.getBool( XML_val, false );
+ // TODO: fix for MSO 2007 behavior
+ // MSO 2007 writes false by default and not true
+ mrModel.mbSmooth = rAttribs.getBool( XML_val, true );
return 0;
case C_TOKEN( val ):
return new DataSourceContext( *this, mrModel.maSources.create( SeriesModel::VALUES ) );
@@ -695,8 +697,9 @@ ContextHandlerRef ScatterSeriesContext::onCreateContext( sal_Int32 nElement, con
case C_TOKEN( marker ):
return this;
case C_TOKEN( smooth ):
- // default is 'false', not 'true' as specified
- mrModel.mbSmooth = rAttribs.getBool( XML_val, false );
+ // TODO: fix for MSO 2007 behavior
+ // MSO 2007 writes false by default and not true
+ mrModel.mbSmooth = rAttribs.getBool( XML_val, true );
return 0;
case C_TOKEN( trendline ):
return new TrendlineContext( *this, mrModel.maTrendlines.create() );
diff --git a/oox/source/drawingml/chart/typegroupcontext.cxx b/oox/source/drawingml/chart/typegroupcontext.cxx
index 8b7b7fbbc8bf..22107e97ffd7 100644
--- a/oox/source/drawingml/chart/typegroupcontext.cxx
+++ b/oox/source/drawingml/chart/typegroupcontext.cxx
@@ -232,8 +232,9 @@ ContextHandlerRef LineTypeGroupContext::onCreateContext( sal_Int32 nElement, con
case C_TOKEN( ser ):
return new LineSeriesContext( *this, mrModel.maSeries.create() );
case C_TOKEN( smooth ):
- // default is 'false', not 'true' as specified
- mrModel.mbSmooth = rAttribs.getBool( XML_val, false );
+ // TODO: fix for MSO 2007 behavior
+ // MSO 2007 writes false by default and not true
+ mrModel.mbSmooth = rAttribs.getBool( XML_val, true );
return 0;
case C_TOKEN( upDownBars ):
return new UpDownBarsContext( *this, mrModel.mxUpDownBars.create() );