chart2/source/view/charttypes/PieChart.cxx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-)
New commits: commit da46a0cbcc656dea15a42d4cfc10e2058258b8cc Author: Markus Mohrhard <markus.mohrh...@collabora.co.uk> Date: Thu Mar 27 00:21:43 2014 +0100 show negative values correctly in pie charts, fdo#69143 Change-Id: I2a33095f7dceb564911478a30aed1137ddacd531 diff --git a/chart2/source/view/charttypes/PieChart.cxx b/chart2/source/view/charttypes/PieChart.cxx index 81d3539..d4636ee 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<drawing::XShape>( xChild->getParent(), uno::UNO_QUERY ); - aPieLabelInfo.fValue = fLogicYValue; + aPieLabelInfo.fValue = nVal; aPieLabelInfo.bMovementAllowed = bMovementAllowed; aPieLabelInfo.bMoved= false; aPieLabelInfo.xTextTarget = xTextTarget; _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits