Kaydet (Commit) 09d486b8 authored tarafından Markus Mohrhard's avatar Markus Mohrhard

data label export does not work with bar charts

Excel just removes the chart during import. Additionally we should work
on only exporting the data label information for points that really
contain data labels.

Change-Id: I80aef8effe27c729feb69c25c319ca129dc961a5
üst 062b9f0b
...@@ -1533,7 +1533,7 @@ void ChartExport::exportSeries( Reference< chart2::XChartType > xChartType, sal_ ...@@ -1533,7 +1533,7 @@ void ChartExport::exportSeries( Reference< chart2::XChartType > xChartType, sal_
// export data labels // export data labels
// Excel does not like our current data label export // Excel does not like our current data label export
// for scatter charts // for scatter charts
if( eChartType != chart::TYPEID_SCATTER ) if( eChartType != chart::TYPEID_SCATTER && eChartType != chart::TYPEID_BAR )
exportDataLabels( uno::Reference< beans::XPropertySet >( aSeriesSeq[nSeriesIdx], uno::UNO_QUERY ), nSeriesLength ); exportDataLabels( uno::Reference< beans::XPropertySet >( aSeriesSeq[nSeriesIdx], uno::UNO_QUERY ), nSeriesLength );
// export data points // export data points
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment