diff options
Diffstat (limited to 'chart2/source/view/charttypes/CandleStickChart.cxx')
-rw-r--r-- | chart2/source/view/charttypes/CandleStickChart.cxx | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/chart2/source/view/charttypes/CandleStickChart.cxx b/chart2/source/view/charttypes/CandleStickChart.cxx index 20c53461d19b..5d907269c119 100644 --- a/chart2/source/view/charttypes/CandleStickChart.cxx +++ b/chart2/source/view/charttypes/CandleStickChart.cxx @@ -201,9 +201,7 @@ void CandleStickChart::createShapes() drawing::Position3D aPosMiddleMinimum( pPosHelper->transformScaledLogicToScene( fScaledX, fScaledY_Min ,0 ,true ) ); drawing::Position3D aPosMiddleMaximum( pPosHelper->transformScaledLogicToScene( fScaledX, fScaledY_Max ,0 ,true ) ); - rtl::Reference<SvxShapeGroupAnyD> xLossGainTarget( xGainTarget ); - if(bBlack) - xLossGainTarget = xLossTarget; + rtl::Reference<SvxShapeGroupAnyD> xLossGainTarget(bBlack ? xLossTarget : xGainTarget); uno::Reference< beans::XPropertySet > xPointProp( pSeries->getPropertiesOfPoint( nIndex )); rtl::Reference<SvxShapeGroupAnyD> xPointGroupShape_Shapes; |