summaryrefslogtreecommitdiff
path: root/oox/source
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@googlemail.com>2015-04-20 05:11:59 +0200
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2015-04-21 06:44:30 +0200
commitf6000b3aabbc234d46a3dc818d37d4a0b6ac23c6 (patch)
tree89ac4f91010d845e757ba72595237c6246163c9c /oox/source
parent5693eb07f645bef934c2e16ba252298d304ff420 (diff)
fix dispEq MSO 2007 vs OOXML
Change-Id: I3637f40cb2c354ead03612f2857e7c2e27ffcd1b
Diffstat (limited to 'oox/source')
-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