show negative values correctly in pie charts, fdo#69143
Change-Id: I2a33095f7dceb564911478a30aed1137ddacd531
This commit is contained in:
committed by
Markus Mohrhard
parent
0b4712812f
commit
da46a0cbcc
@@ -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;
|
||||
|
Reference in New Issue
Block a user