diff options
author | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2015-04-20 05:10:43 +0200 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2015-04-21 06:44:30 +0200 |
commit | 935f3b9993bfb76560c07ba0d39df4ce21e58518 (patch) | |
tree | 5486e4919daee95ed8fd0d624dce6beea82f381a /oox | |
parent | 2a1b49b4ad569dd2af8f777aae578484f55d4b9a (diff) |
fix noEndCap MSO 2007 vs OOXML
Change-Id: I21084eb053c04cb5be5de586ee506cc6e5d97b04
Diffstat (limited to 'oox')
-rw-r--r-- | oox/source/drawingml/chart/seriescontext.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/oox/source/drawingml/chart/seriescontext.cxx b/oox/source/drawingml/chart/seriescontext.cxx index b75f05c97a87..6a7ac2909c73 100644 --- a/oox/source/drawingml/chart/seriescontext.cxx +++ b/oox/source/drawingml/chart/seriescontext.cxx @@ -190,6 +190,7 @@ ErrorBarContext::~ErrorBarContext() ContextHandlerRef ErrorBarContext::onCreateContext( sal_Int32 nElement, const AttributeList& rAttribs ) { + bool bMSO2007Doc = getFilter().isMSO2007Document(); if( isRootElement() ) switch( nElement ) { case C_TOKEN( errBarType ): @@ -205,7 +206,7 @@ ContextHandlerRef ErrorBarContext::onCreateContext( sal_Int32 nElement, const At 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, false ); + mrModel.mbNoEndCap = rAttribs.getBool( XML_val, !bMSO2007Doc ); return 0; case C_TOKEN( plus ): return new DataSourceContext( *this, mrModel.maSources.create( ErrorBarModel::PLUS ) ); |