diff options
Diffstat (limited to 'chart2/source/view/charttypes/BarChart.cxx')
-rw-r--r-- | chart2/source/view/charttypes/BarChart.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/chart2/source/view/charttypes/BarChart.cxx b/chart2/source/view/charttypes/BarChart.cxx index 1cb6196d5915..08b9d5a6c6bb 100644 --- a/chart2/source/view/charttypes/BarChart.cxx +++ b/chart2/source/view/charttypes/BarChart.cxx @@ -690,10 +690,10 @@ void BarChart::createShapes() double fHeight = fCompleteHeight-fLowerYValue; if(!bPositive) fHeight = fCompleteHeight-fUpperYValue; - fLogicBarWidth = fLogicBaseWidth*fHeight/(fCompleteHeight); + fLogicBarWidth = fLogicBaseWidth*fHeight/fCompleteHeight; if(fLogicBarWidth<=0.0) fLogicBarWidth=fLogicBaseWidth; - fLogicBarDepth = fLogicBarDepth*fHeight/(fCompleteHeight); + fLogicBarDepth = fLogicBarDepth*fHeight/fCompleteHeight; if(fLogicBarDepth<=0.0) fLogicBarDepth*=-1.0; } @@ -833,7 +833,7 @@ void BarChart::createShapes() { if( lcl_hasGeometry3DVariableWidth(nGeometry3D) && fCompleteHeight!=0.0 ) { - double 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); } |