summaryrefslogtreecommitdiff
path: root/oox
diff options
context:
space:
mode:
Diffstat (limited to 'oox')
-rw-r--r--oox/source/drawingml/chart/seriescontext.cxx5
1 files changed, 2 insertions, 3 deletions
diff --git a/oox/source/drawingml/chart/seriescontext.cxx b/oox/source/drawingml/chart/seriescontext.cxx
index 2f69812464e9..db392c68ea9a 100644
--- a/oox/source/drawingml/chart/seriescontext.cxx
+++ b/oox/source/drawingml/chart/seriescontext.cxx
@@ -205,7 +205,6 @@ ContextHandlerRef ErrorBarContext::onCreateContext( sal_Int32 nElement, const At
case C_TOKEN( minus ):
return new DataSourceContext( *this, mrModel.maSources.create( ErrorBarModel::MINUS ) );
case C_TOKEN( noEndCap ):
- // default is 'false', not 'true' as specified
mrModel.mbNoEndCap = rAttribs.getBool( XML_val, !bMSO2007Doc );
return 0;
case C_TOKEN( plus ):
@@ -258,14 +257,14 @@ TrendlineContext::~TrendlineContext()
ContextHandlerRef TrendlineContext::onCreateContext( sal_Int32 nElement, const AttributeList& rAttribs )
{
+ bool bMSO2007Doc = getFilter().isMSO2007Document();
if( isRootElement() ) switch( nElement )
{
case C_TOKEN( backward ):
mrModel.mfBackward = rAttribs.getDouble( XML_val, 0.0 );
return 0;
case C_TOKEN( dispEq ):
- // default is 'false', not 'true' as specified
- mrModel.mbDispEquation = rAttribs.getBool( XML_val, false );
+ mrModel.mbDispEquation = rAttribs.getBool( XML_val, !bMSO2007Doc );
return 0;
case C_TOKEN( dispRSqr ):
// default is 'false', not 'true' as specified