summaryrefslogtreecommitdiff
path: root/oox
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@googlemail.com>2015-04-28 12:02:42 +0200
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2015-04-30 08:13:17 +0200
commit58ba2e1942044307742d5be275ea4c38f3fdfbdd (patch)
tree179b8a1cd134d7a85ea480479f1fc0aa9eff143d /oox
parent3e1c05afbd353a7eb608764d6c2c7282b4592e13 (diff)
fix plotVisOnly MSO 2007 vs OOXML default value
Change-Id: I729b4dd0527ad5b0823532a115416bfff8c2db15
Diffstat (limited to 'oox')
-rw-r--r--oox/source/drawingml/chart/chartspacefragment.cxx3
-rw-r--r--oox/source/drawingml/chart/chartspacemodel.cxx2
2 files changed, 2 insertions, 3 deletions
diff --git a/oox/source/drawingml/chart/chartspacefragment.cxx b/oox/source/drawingml/chart/chartspacefragment.cxx
index ae7947ea17d8..8c98ad6a37e3 100644
--- a/oox/source/drawingml/chart/chartspacefragment.cxx
+++ b/oox/source/drawingml/chart/chartspacefragment.cxx
@@ -102,8 +102,7 @@ ContextHandlerRef ChartSpaceFragment::onCreateContext( sal_Int32 nElement, const
case C_TOKEN( plotArea ):
return new PlotAreaContext( *this, mrModel.mxPlotArea.create() );
case C_TOKEN( plotVisOnly ):
- // default is 'false', not 'true' as specified
- mrModel.mbPlotVisOnly = rAttribs.getBool( XML_val, false );
+ mrModel.mbPlotVisOnly = rAttribs.getBool( XML_val, !bMSO2007Document );
return 0;
case C_TOKEN( showDLblsOverMax ):
// default is 'false', not 'true' as specified
diff --git a/oox/source/drawingml/chart/chartspacemodel.cxx b/oox/source/drawingml/chart/chartspacemodel.cxx
index 8a14bb03fa6c..1e05dff65c87 100644
--- a/oox/source/drawingml/chart/chartspacemodel.cxx
+++ b/oox/source/drawingml/chart/chartspacemodel.cxx
@@ -28,7 +28,7 @@ ChartSpaceModel::ChartSpaceModel(bool bMSO2007Doc) :
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 ),
+ mbPlotVisOnly( !bMSO2007Doc ),
mbShowLabelsOverMax( false ),
mbPivotChart( false )
{