diff options
-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 ) |