Kaydet (Commit) 783a0757 authored tarafından Markus Mohrhard's avatar Markus Mohrhard Kaydeden (comit) Markus Mohrhard

prevent invalid OOXML chart files, related #i75121#

Change-Id: I8e34fd2941ce98a30d27861db2c6a625ff873aa6
üst c68ea7ef
...@@ -1758,16 +1758,20 @@ void ChartExport::exportSeries( Reference< chart2::XChartType > xChartType, sal_ ...@@ -1758,16 +1758,20 @@ void ChartExport::exportSeries( Reference< chart2::XChartType > xChartType, sal_
exportTrendlines( aSeriesSeq[nSeriesIdx] ); exportTrendlines( aSeriesSeq[nSeriesIdx] );
//export error bars here if( eChartType != chart::TYPEID_PIE &&
Reference< XPropertySet > xSeriesPropSet( xSource, uno::UNO_QUERY ); eChartType != chart::TYPEID_RADARLINE )
Reference< XPropertySet > xErrorBarYProps; {
xSeriesPropSet->getPropertyValue("ErrorBarY") >>= xErrorBarYProps; //export error bars here
if(xErrorBarYProps.is()) Reference< XPropertySet > xSeriesPropSet( xSource, uno::UNO_QUERY );
exportErrorBar(xErrorBarYProps, true); Reference< XPropertySet > xErrorBarYProps;
Reference< XPropertySet > xErrorBarXProps; xSeriesPropSet->getPropertyValue("ErrorBarY") >>= xErrorBarYProps;
xSeriesPropSet->getPropertyValue("ErrorBarX") >>= xErrorBarXProps; if(xErrorBarYProps.is())
if(xErrorBarXProps.is()) exportErrorBar(xErrorBarYProps, true);
exportErrorBar(xErrorBarXProps, false); Reference< XPropertySet > xErrorBarXProps;
xSeriesPropSet->getPropertyValue("ErrorBarX") >>= xErrorBarXProps;
if(xErrorBarXProps.is())
exportErrorBar(xErrorBarXProps, false);
}
// export categories // export categories
if( eChartType != chart::TYPEID_SCATTER && mxCategoriesValues.is() ) if( eChartType != chart::TYPEID_SCATTER && mxCategoriesValues.is() )
......
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