summaryrefslogtreecommitdiff
path: root/oox/source/drawingml/chart/chartspacefragment.cxx
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@collabora.co.uk>2015-03-12 15:19:37 +0100
committerAndras Timar <andras.timar@collabora.com>2015-03-13 10:21:16 +0100
commitafe0a7ec1f0a3841c96148f17c9616b861c08582 (patch)
treea9e8b5cb9fc57a0b77ffd87c49a84a485d137624 /oox/source/drawingml/chart/chartspacefragment.cxx
parent6bcbcb21faed17e529591f29aa0e492600f49ec3 (diff)
handle MSO 2007 vs OOXML in auto title chart import
Conflicts: oox/source/drawingml/chart/chartspacefragment.cxx oox/source/drawingml/chart/chartspacemodel.cxx Change-Id: Ie143751d22404dac8f31c8ecef90a0e185e07973
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 eec0f1c79bb7..4818bad0a7cb 100644
--- a/oox/source/drawingml/chart/chartspacefragment.cxx
+++ b/oox/source/drawingml/chart/chartspacefragment.cxx
@@ -85,8 +85,13 @@ ContextHandlerRef ChartSpaceFragment::onCreateContext( sal_Int32 nElement, const
switch( nElement )
{
case C_TOKEN( autoTitleDeleted ):
- mrModel.mbAutoTitleDel = rAttribs.getBool( XML_val, true );
+ {
+ 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 ):