summaryrefslogtreecommitdiff
path: root/oox
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@googlemail.com>2013-05-01 20:22:08 +0200
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2013-05-01 20:29:19 +0200
commit3dc2f24a5db4b116802dd70cd2b6765ea9c63b6e (patch)
treebda4bd389ed531e5fd14c854407ebc2b3331ea3b /oox
parent6ed88e6d4d61394aed2acd45777f8f037da53d58 (diff)
we need to exclude scatter chart for data label export for now
Excel does not like our data label export and removes the charts during import. I could not figure out what is wrong as the files are valid. Change-Id: I92458803a48bff1436e7c47ca29d27e487c0642b
Diffstat (limited to 'oox')
-rw-r--r--oox/source/export/chartexport.cxx5
1 files changed, 4 insertions, 1 deletions
diff --git a/oox/source/export/chartexport.cxx b/oox/source/export/chartexport.cxx
index 660455d806ed..11a79fc3c709 100644
--- a/oox/source/export/chartexport.cxx
+++ b/oox/source/export/chartexport.cxx
@@ -1527,7 +1527,10 @@ void ChartExport::exportSeries( Reference< chart2::XChartType > xChartType, sal_
}
// export data labels
- exportDataLabels( uno::Reference< beans::XPropertySet >( aSeriesSeq[nSeriesIdx], uno::UNO_QUERY ), nSeriesLength );
+ // Excel does not like our current data label export
+ // for scatter charts
+ if( eChartType != chart::TYPEID_SCATTER )
+ exportDataLabels( uno::Reference< beans::XPropertySet >( aSeriesSeq[nSeriesIdx], uno::UNO_QUERY ), nSeriesLength );
// export data points
exportDataPoints( uno::Reference< beans::XPropertySet >( aSeriesSeq[nSeriesIdx], uno::UNO_QUERY ), nSeriesLength );