From 935f3b9993bfb76560c07ba0d39df4ce21e58518 Mon Sep 17 00:00:00 2001 From: Markus Mohrhard Date: Mon, 20 Apr 2015 05:10:43 +0200 Subject: fix noEndCap MSO 2007 vs OOXML Change-Id: I21084eb053c04cb5be5de586ee506cc6e5d97b04 --- oox/source/drawingml/chart/seriescontext.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'oox') 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 ) ); -- cgit v1.2.3