summaryrefslogtreecommitdiff
path: root/oox/source
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@collabora.co.uk>2015-03-10 14:42:26 +0100
committerAndras Timar <andras.timar@collabora.com>2015-03-16 14:56:59 +0100
commita6c9a2cd61222b06f2a2c5614c555971087eae6c (patch)
tree63427ed0a03b8af710bbfc775901b8884ba5ef4a /oox/source
parent5a48a0b52ec0d54a707753a80196f4d62923f0c5 (diff)
handle one more place with MSO 2007 vs OOXML spec for charts
Change-Id: I7dbc3017f2bba7b186174be2e4fd8c9ce7005d34 (cherry picked from commit 708d201884c4940647dc65e43e887803f06dce87)
Diffstat (limited to 'oox/source')
-rw-r--r--oox/source/drawingml/chart/chartspacefragment.cxx6
-rw-r--r--oox/source/drawingml/chart/chartspacemodel.cxx2
2 files changed, 6 insertions, 2 deletions
diff --git a/oox/source/drawingml/chart/chartspacefragment.cxx b/oox/source/drawingml/chart/chartspacefragment.cxx
index 4818bad0a7cb..923d0ff3b881 100644
--- a/oox/source/drawingml/chart/chartspacefragment.cxx
+++ b/oox/source/drawingml/chart/chartspacefragment.cxx
@@ -95,8 +95,12 @@ ContextHandlerRef ChartSpaceFragment::onCreateContext( sal_Int32 nElement, const
case C_TOKEN( backWall ):
return new WallFloorContext( *this, mrModel.mxBackWall.create() );
case C_TOKEN( dispBlanksAs ):
- mrModel.mnDispBlanksAs = rAttribs.getToken( XML_val, XML_zero );
+ {
+ bool bMSO2007Document = getFilter().isMSO2007Document();
+ // default value is XML_gap for MSO 2007 and XML_zero in OOXML
+ mrModel.mnDispBlanksAs = rAttribs.getToken( XML_val, bMSO2007Document ? XML_gap : XML_zero );
return 0;
+ }
case C_TOKEN( floor ):
return new WallFloorContext( *this, mrModel.mxFloor.create() );
case C_TOKEN( legend ):
diff --git a/oox/source/drawingml/chart/chartspacemodel.cxx b/oox/source/drawingml/chart/chartspacemodel.cxx
index b76a55c36a38..c22c519944d8 100644
--- a/oox/source/drawingml/chart/chartspacemodel.cxx
+++ b/oox/source/drawingml/chart/chartspacemodel.cxx
@@ -24,7 +24,7 @@ namespace drawingml {
namespace chart {
ChartSpaceModel::ChartSpaceModel(bool bMSO2007Doc) :
- mnDispBlanksAs( XML_gap ), // not zero as specified, TODO: OOXML_spec
+ mnDispBlanksAs( bMSO2007Doc ? XML_gap : XML_zero ), // difference between OOXML spec and MSO 2007
mnStyle( 2 ),
mbAutoTitleDel( !bMSO2007Doc ), // difference between OOXML spec and MSO 2007
mbPlotVisOnly( false ),