summaryrefslogtreecommitdiff
path: root/oox
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@googlemail.com>2015-04-04 02:25:00 +0200
committerAndras Timar <andras.timar@collabora.com>2015-04-04 10:27:36 +0200
commit25180bde7df62b8fdb1c1b45e8f9837eb95e0cc9 (patch)
tree312de75b81800f3e91e2323a83bfa94ba9d44b37 /oox
parentb9c35ff5fb05cb4f14744750d893c8a011fb2c57 (diff)
fix OOXML vs MSO2007 in chart import in one more place
Change-Id: I96bafad0cc73b27c2a08b5205a35b10b4901afb9 (cherry picked from commit 547c58a6173535c679027c83fb3ed77f6060fd09)
Diffstat (limited to 'oox')
-rw-r--r--oox/source/drawingml/chart/seriescontext.cxx11
1 files changed, 6 insertions, 5 deletions
diff --git a/oox/source/drawingml/chart/seriescontext.cxx b/oox/source/drawingml/chart/seriescontext.cxx
index fde29520cb1e..d0d6e4698481 100644
--- a/oox/source/drawingml/chart/seriescontext.cxx
+++ b/oox/source/drawingml/chart/seriescontext.cxx
@@ -40,13 +40,12 @@ using ::oox::core::ContextHandlerRef;
namespace {
ContextHandlerRef lclDataLabelSharedCreateContext( ContextHandler2& rContext,
- sal_Int32 nElement, const AttributeList& rAttribs, DataLabelModelBase& orModel )
+ sal_Int32 nElement, const AttributeList& rAttribs, DataLabelModelBase& orModel, bool bMSO2007 )
{
if( rContext.isRootElement() ) switch( nElement )
{
case C_TOKEN( delete ):
- // default is 'false', not 'true' as specified
- orModel.mbDeleted = rAttribs.getBool( XML_val, false );
+ orModel.mbDeleted = rAttribs.getBool( XML_val, bMSO2007 ? false : true );
return 0;
case C_TOKEN( dLblPos ):
orModel.monLabelPos = rAttribs.getToken( XML_val, XML_TOKEN_INVALID );
@@ -114,7 +113,8 @@ ContextHandlerRef DataLabelContext::onCreateContext( sal_Int32 nElement, const A
case C_TOKEN( tx ):
return new TextContext( *this, mrModel.mxText.create() );
}
- return lclDataLabelSharedCreateContext( *this, nElement, rAttribs, mrModel );
+ bool bMSO2007 = getFilter().isMSO2007Document();
+ return lclDataLabelSharedCreateContext( *this, nElement, rAttribs, mrModel, bMSO2007 );
}
void DataLabelContext::onCharacters( const OUString& rChars )
@@ -146,7 +146,8 @@ ContextHandlerRef DataLabelsContext::onCreateContext( sal_Int32 nElement, const
mrModel.mbShowLeaderLines = rAttribs.getBool( XML_val, false );
return 0;
}
- return lclDataLabelSharedCreateContext( *this, nElement, rAttribs, mrModel );
+ bool bMSO2007 = getFilter().isMSO2007Document();
+ return lclDataLabelSharedCreateContext( *this, nElement, rAttribs, mrModel, bMSO2007 );
}
void DataLabelsContext::onCharacters( const OUString& rChars )