summaryrefslogtreecommitdiff
path: root/oox/source/drawingml/chart/chartspacefragment.cxx
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@collabora.co.uk>2015-03-10 00:59:28 +0100
committerMarkus Mohrhard <markus.mohrhard@collabora.co.uk>2015-03-10 01:00:03 +0100
commit23a1717881ebfa3638b969aa4bad38a81d26d29d (patch)
treea96e63e5c9cf0c10b5e1e0a0466c9b9f8730117b /oox/source/drawingml/chart/chartspacefragment.cxx
parent15174177091367332b57cd79575e2f7dd27388b2 (diff)
handle MSO 2007 vs OOXML in auto title chart import
Change-Id: Id884a4c90c24b38a1dd22a41d271dcc551b59adc
Diffstat (limited to 'oox/source/drawingml/chart/chartspacefragment.cxx')
-rw-r--r--oox/source/drawingml/chart/chartspacefragment.cxx7
1 files changed, 6 insertions, 1 deletions
diff --git a/oox/source/drawingml/chart/chartspacefragment.cxx b/oox/source/drawingml/chart/chartspacefragment.cxx
index ac12bf53c555..eb014ef9002c 100644
--- a/oox/source/drawingml/chart/chartspacefragment.cxx
+++ b/oox/source/drawingml/chart/chartspacefragment.cxx
@@ -81,8 +81,13 @@ ContextHandlerRef ChartSpaceFragment::onCreateContext( sal_Int32 nElement, const
switch( nElement )
{
case C_TOKEN( autoTitleDeleted ):
- mrModel.mbAutoTitleDel = rAttribs.getBool( XML_val, true ); // TODO: OOXML_spec
+ {
+ bool bMSO2007Document = getFilter().isMSO2007Document();
+
+ // default value is false for MSO 2007 and true in OOXML
+ mrModel.mbAutoTitleDel = rAttribs.getBool( XML_val, !bMSO2007Document );
return 0;
+ }
case C_TOKEN( backWall ):
return new WallFloorContext( *this, mrModel.mxBackWall.create() );
case C_TOKEN( dispBlanksAs ):