diff options
author | Rafael Dominguez <venccsralph@gmail.com> | 2012-03-17 17:15:10 +0000 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2012-03-23 02:55:32 +0100 |
commit | 581978b90ccd68ce9aecd328b8f801b08837c0cf (patch) | |
tree | a9e9d720b209085598de6443d353e8c141267d06 /chart2/source | |
parent | 6294d8f4dff5deaa4efbe2a88113a5262217092a (diff) |
Get correct datasource when calculating errorbar length.
Diffstat (limited to 'chart2/source')
-rw-r--r-- | chart2/source/view/charttypes/VSeriesPlotter.cxx | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/chart2/source/view/charttypes/VSeriesPlotter.cxx b/chart2/source/view/charttypes/VSeriesPlotter.cxx index e0a6f3c73e55..ce4d71470c67 100644 --- a/chart2/source/view/charttypes/VSeriesPlotter.cxx +++ b/chart2/source/view/charttypes/VSeriesPlotter.cxx @@ -637,7 +637,8 @@ double lcl_getErrorBarLogicLength( uno::Reference< beans::XPropertySet > xProp, sal_Int32 nErrorBarStyle, sal_Int32 nIndex, - bool bPositive ) + bool bPositive, + bool bYError ) { double fResult; ::rtl::math::setNan( & fResult ); @@ -706,7 +707,7 @@ double lcl_getErrorBarLogicLength( uno::Reference< chart2::data::XDataSource > xErrorBarData( xProp, uno::UNO_QUERY ); if( xErrorBarData.is()) fResult = StatisticsHelper::getErrorFromDataSource( - xErrorBarData, nIndex, bPositive); + xErrorBarData, nIndex, bPositive, bYError); } break; } @@ -851,7 +852,7 @@ void VSeriesPlotter::createErrorBar( if( bShowPositive ) { - double fLength = lcl_getErrorBarLogicLength( aData, xErrorBarProperties, nErrorBarStyle, nIndex, true ); + double fLength = lcl_getErrorBarLogicLength( aData, xErrorBarProperties, nErrorBarStyle, nIndex, true, bYError ); if( ::rtl::math::isFinite( fLength ) ) { double fLocalX = fX; @@ -874,7 +875,7 @@ void VSeriesPlotter::createErrorBar( if( bShowNegative ) { - double fLength = lcl_getErrorBarLogicLength( aData, xErrorBarProperties, nErrorBarStyle, nIndex, false ); + double fLength = lcl_getErrorBarLogicLength( aData, xErrorBarProperties, nErrorBarStyle, nIndex, false, bYError ); if( ::rtl::math::isFinite( fLength ) ) { double fLocalX = fX; |