summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--chart2/source/view/charttypes/BarChart.cxx7
1 files changed, 2 insertions, 5 deletions
diff --git a/chart2/source/view/charttypes/BarChart.cxx b/chart2/source/view/charttypes/BarChart.cxx
index 6c50ba35aeea..51dba0143bf2 100644
--- a/chart2/source/view/charttypes/BarChart.cxx
+++ b/chart2/source/view/charttypes/BarChart.cxx
@@ -550,12 +550,9 @@ void BarChart::createShapes()
double fSlotX=0;
for( auto& rXSlot : rZSlot )
{
- sal_Int32 nAttachedAxisIndex = 0;
- BarPositionHelper* pPosHelper = m_pMainPosHelper.get();
-
- nAttachedAxisIndex = rXSlot.getAttachedAxisIndexForFirstSeries();
+ sal_Int32 nAttachedAxisIndex = rXSlot.getAttachedAxisIndexForFirstSeries();
//2ND_AXIS_IN_BARS so far one can assume to have the same plotter for each z slot
- pPosHelper = dynamic_cast<BarPositionHelper*>(&( getPlottingPositionHelper( nAttachedAxisIndex ) ) );
+ BarPositionHelper* pPosHelper = dynamic_cast<BarPositionHelper*>(&( getPlottingPositionHelper( nAttachedAxisIndex ) ) );
if(!pPosHelper)
pPosHelper = m_pMainPosHelper.get();