summaryrefslogtreecommitdiff
path: root/oox
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@googlemail.com>2015-04-30 05:23:48 +0200
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2015-04-30 08:13:19 +0200
commit1e033254927750affcd1dcc0e10c48f076ebec13 (patch)
tree5f1686435588ca75c50f922ef66a17322dd044b6 /oox
parent1be9365d7f7c33e23d4599931616fdf56bb26fbf (diff)
export plotVisOnly correctly to OOXML
Change-Id: Icf37ac292b49246e879331ba72cc8aa831c7edba
Diffstat (limited to 'oox')
-rw-r--r--oox/source/export/chartexport.cxx8
1 files changed, 6 insertions, 2 deletions
diff --git a/oox/source/export/chartexport.cxx b/oox/source/export/chartexport.cxx
index 1635af1d3602..1ea20cd2a0d7 100644
--- a/oox/source/export/chartexport.cxx
+++ b/oox/source/export/chartexport.cxx
@@ -905,9 +905,13 @@ void ChartExport::exportChart( Reference< css::chart::XChartDocument > rChartDoc
// legend
if( bHasLegend )
exportLegend( rChartDoc );
- // only visible cells should be plotted on the chart
+
+ uno::Reference<beans::XPropertySet> xDiagramPropSet(rChartDoc->getDiagram(), uno::UNO_QUERY);
+ uno::Any aPlotVisOnly = xDiagramPropSet->getPropertyValue("IncludeHiddenCells");
+ bool bIncludeHiddenCells = false;
+ aPlotVisOnly >>= bIncludeHiddenCells;
pFS->singleElement( FSNS( XML_c, XML_plotVisOnly ),
- XML_val, "1",
+ XML_val, BS(!bIncludeHiddenCells),
FSEND );
exportMissingValueTreatment(Reference<beans::XPropertySet>(mxDiagram, uno::UNO_QUERY));