summaryrefslogtreecommitdiff
path: root/chart2/source
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2015-10-06 15:09:39 +0200
committerStephan Bergmann <sbergman@redhat.com>2015-10-06 15:31:18 +0200
commita4ef2e39e590ee0c0b57237eff0d3649af46bf8e (patch)
tree688dbce56f8681a3a29887e885391faafdaf9ebc /chart2/source
parent1888b37a83368f11540ab1ef200d25d3c91bee28 (diff)
clang-analyzer-deadcode.DeadStores
Change-Id: I7243c1590384472bf40cdbdb5af0614fffcb253b
Diffstat (limited to 'chart2/source')
-rw-r--r--chart2/source/view/charttypes/BarChart.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/chart2/source/view/charttypes/BarChart.cxx b/chart2/source/view/charttypes/BarChart.cxx
index 519f98f28c98..9ab6ae70483b 100644
--- a/chart2/source/view/charttypes/BarChart.cxx
+++ b/chart2/source/view/charttypes/BarChart.cxx
@@ -828,10 +828,9 @@ void BarChart::createShapes()
double fLowerBarDepth = fLogicBarDepth;
double fUpperBarDepth = fLogicBarDepth;
{
- double fOuterBarDepth = fLogicBarDepth;
if( lcl_hasGeometry3DVariableWidth(nGeometry3D) && fCompleteHeight!=0.0 )
{
- fOuterBarDepth = fLogicBarDepth * (fTopHeight)/(fabs(fCompleteHeight));
+ double fOuterBarDepth = fLogicBarDepth * (fTopHeight)/(fabs(fCompleteHeight));
fLowerBarDepth = (fBaseValue < fUpperYValue) ? fabs(fLogicBarDepth) : fabs(fOuterBarDepth);
fUpperBarDepth = (fBaseValue < fUpperYValue) ? fabs(fOuterBarDepth) : fabs(fLogicBarDepth);
}