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

show negative values correctly in pie charts, fdo#69143

Change-Id: I2a33095f7dceb564911478a30aed1137ddacd531
üst 0b471281
...@@ -488,13 +488,14 @@ void PieChart::createShapes() ...@@ -488,13 +488,14 @@ void PieChart::createShapes()
aScreenPosition2D.Y += aDirection.getY(); aScreenPosition2D.Y += aDirection.getY();
} }
double nVal = pSeries->getYValue( nPointIndex );
aPieLabelInfo.xTextShape = this->createDataLabel( xTextTarget, *pSeries, 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 ); uno::Reference< container::XChild > xChild( aPieLabelInfo.xTextShape, uno::UNO_QUERY );
if( xChild.is() ) if( xChild.is() )
aPieLabelInfo.xLabelGroupShape = uno::Reference<drawing::XShape>( xChild->getParent(), uno::UNO_QUERY ); aPieLabelInfo.xLabelGroupShape = uno::Reference<drawing::XShape>( xChild->getParent(), uno::UNO_QUERY );
aPieLabelInfo.fValue = fLogicYValue; aPieLabelInfo.fValue = nVal;
aPieLabelInfo.bMovementAllowed = bMovementAllowed; aPieLabelInfo.bMovementAllowed = bMovementAllowed;
aPieLabelInfo.bMoved= false; aPieLabelInfo.bMoved= false;
aPieLabelInfo.xTextTarget = xTextTarget; aPieLabelInfo.xTextTarget = xTextTarget;
......
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