diff options
Diffstat (limited to 'chart2/source/controller/chartapiwrapper/WrappedStatisticProperties.cxx')
-rw-r--r-- | chart2/source/controller/chartapiwrapper/WrappedStatisticProperties.cxx | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/chart2/source/controller/chartapiwrapper/WrappedStatisticProperties.cxx b/chart2/source/controller/chartapiwrapper/WrappedStatisticProperties.cxx index f240aa8d1ea8..957a346bbe52 100644 --- a/chart2/source/controller/chartapiwrapper/WrappedStatisticProperties.cxx +++ b/chart2/source/controller/chartapiwrapper/WrappedStatisticProperties.cxx @@ -187,8 +187,7 @@ protected: xSeriesPropertySet->getPropertyValue( CHART_UNONAME_ERRORBAR_Y ) >>= xErrorBarProperties; if( !xErrorBarProperties.is() ) { - // todo: use a valid context - xErrorBarProperties = ::chart::createErrorBar( uno::Reference< uno::XComponentContext >() ); + xErrorBarProperties = new ::chart::ErrorBar; //default in new and old api are different xErrorBarProperties->setPropertyValue( "ShowPositiveError" , uno::makeAny(false) ); xErrorBarProperties->setPropertyValue( "ShowNegativeError" , uno::makeAny(false) ); @@ -345,7 +344,7 @@ void WrappedMeanValueProperty::setValueToSeries( const Reference< beans::XProper if( xRegCnt.is() ) { if(aNewValue) - RegressionCurveHelper::addMeanValueLine( xRegCnt, nullptr, nullptr ); + RegressionCurveHelper::addMeanValueLine( xRegCnt, nullptr ); else RegressionCurveHelper::removeMeanValueLine( xRegCnt ); } |