summaryrefslogtreecommitdiff
path: root/oox
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@googlemail.com>2015-04-20 05:07:08 +0200
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2015-04-21 06:44:29 +0200
commit3eff437c462808df929ae6fd0034c0989f7fda3d (patch)
treed333a6bf2ce8d4e8b3156caf82c29cb26c109ca0 /oox
parent0c8d6a434fb4015e9fb9a43827453d464eb9f7b5 (diff)
fix showLeaderLines MSO 2007 vs OOXML
Change-Id: I762383de76ecbabc867ebf3fc9128287421f9c6b
Diffstat (limited to 'oox')
-rw-r--r--oox/source/drawingml/chart/seriescontext.cxx7
1 files changed, 3 insertions, 4 deletions
diff --git a/oox/source/drawingml/chart/seriescontext.cxx b/oox/source/drawingml/chart/seriescontext.cxx
index a9de7fb568ec..446bad10caff 100644
--- a/oox/source/drawingml/chart/seriescontext.cxx
+++ b/oox/source/drawingml/chart/seriescontext.cxx
@@ -127,6 +127,7 @@ DataLabelsContext::~DataLabelsContext()
ContextHandlerRef DataLabelsContext::onCreateContext( sal_Int32 nElement, const AttributeList& rAttribs )
{
+ bool bMSO2007Doc = getFilter().isMSO2007Document();
if( isRootElement() ) switch( nElement )
{
case C_TOKEN( dLbl ):
@@ -134,12 +135,10 @@ ContextHandlerRef DataLabelsContext::onCreateContext( sal_Int32 nElement, const
case C_TOKEN( leaderLines ):
return new ShapePrWrapperContext( *this, mrModel.mxLeaderLines.create() );
case C_TOKEN( showLeaderLines ):
- // default is 'false', not 'true' as specified
- mrModel.mbShowLeaderLines = rAttribs.getBool( XML_val, false );
+ mrModel.mbShowLeaderLines = rAttribs.getBool( XML_val, !bMSO2007Doc );
return 0;
}
- bool bMSO2007 = getFilter().isMSO2007Document();
- return lclDataLabelSharedCreateContext( *this, nElement, rAttribs, mrModel, bMSO2007 );
+ return lclDataLabelSharedCreateContext( *this, nElement, rAttribs, mrModel, bMSO2007Doc );
}
void DataLabelsContext::onCharacters( const OUString& rChars )