diff --git a/chart2/source/view/charttypes/PieChart.cxx b/chart2/source/view/charttypes/PieChart.cxx index 81d35394a521..d4636eec9879 100644 --- a/chart2/source/view/charttypes/PieChart.cxx +++ b/chart2/source/view/charttypes/PieChart.cxx @@ -488,13 +488,14 @@ void PieChart::createShapes() aScreenPosition2D.Y += aDirection.getY(); } + double nVal = pSeries->getYValue( nPointIndex ); aPieLabelInfo.xTextShape = this->createDataLabel( xTextTarget, *pSeries, nPointIndex - , fLogicYValue, fLogicYSum, aScreenPosition2D, eAlignment ); + , nVal, fLogicYSum, aScreenPosition2D, eAlignment ); uno::Reference< container::XChild > xChild( aPieLabelInfo.xTextShape, uno::UNO_QUERY ); if( xChild.is() ) aPieLabelInfo.xLabelGroupShape = uno::Reference( xChild->getParent(), uno::UNO_QUERY ); - aPieLabelInfo.fValue = fLogicYValue; + aPieLabelInfo.fValue = nVal; aPieLabelInfo.bMovementAllowed = bMovementAllowed; aPieLabelInfo.bMoved= false; aPieLabelInfo.xTextTarget = xTextTarget;