diff options
author | PriyankaGaikwad <priyanka.gaikwad@synerzip.com> | 2013-12-04 14:51:51 +0530 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2013-12-15 22:05:47 +0000 |
commit | 8181fb0cd2b4063695eee1efa8b88ce02085402a (patch) | |
tree | 07dc4f8d7c3e6b9071639b89f403dc002a4d3d50 | |
parent | 17ea161098bc3724e27768d7958fa0a206efdfc2 (diff) |
fdo#72221: Fixed for doughnut chart - RT is invalid
Doughnut chart is exported as pie chart.
Change-Id: I440fa86786be8c9bdd4663475faf8e2a5f5e8070
Reviewed-on: https://gerrit.libreoffice.org/6924
Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
Tested-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
-rw-r--r-- | oox/source/export/chartexport.cxx | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/oox/source/export/chartexport.cxx b/oox/source/export/chartexport.cxx index 17a86ff630e8..0bbbef632108 100644 --- a/oox/source/export/chartexport.cxx +++ b/oox/source/export/chartexport.cxx @@ -1026,16 +1026,12 @@ void ChartExport::exportPlotArea( ) exportBubbleChart( xChartType ); break; } - case chart::TYPEID_DOUGHNUT: - { - exportDoughnutChart( xChartType ); - break; - } case chart::TYPEID_OFPIE: { exportOfPieChart( xChartType ); break; } + case chart::TYPEID_DOUGHNUT: case chart::TYPEID_PIE: { exportPieChart( xChartType ); @@ -1268,6 +1264,12 @@ void ChartExport::exportOfPieChart( Reference< chart2::XChartType > /*xChartType void ChartExport::exportPieChart( Reference< chart2::XChartType > xChartType ) { + sal_Int32 eChartType = getChartType( ); + if(eChartType == chart::TYPEID_DOUGHNUT) + { + exportDoughnutChart( xChartType ); + return; + } FSHelperPtr pFS = GetFS(); sal_Int32 nTypeId = XML_pieChart; if( mbIs3DChart ) |