diff options
Diffstat (limited to 'chart2/source')
-rw-r--r-- | chart2/source/view/charttypes/VSeriesPlotter.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/chart2/source/view/charttypes/VSeriesPlotter.cxx b/chart2/source/view/charttypes/VSeriesPlotter.cxx index b728bfb3b1ef..825b0f7a6822 100644 --- a/chart2/source/view/charttypes/VSeriesPlotter.cxx +++ b/chart2/source/view/charttypes/VSeriesPlotter.cxx @@ -791,8 +791,8 @@ double VSeriesPlotter::getMinimumYInRange( double fMinimumX, double fMaximumX ) { double fLocalMinimum, fLocalMaximum; if( m_aXSlots[nN].calculateYMinAndMaxForCategoryRange( - static_cast<sal_Int32>(fMinimumX+0.5) - , static_cast<sal_Int32>(fMaximumX+0.5) + static_cast<sal_Int32>(fMinimumX-0.5) //first category (index 0) matches with real number 1.0 + , static_cast<sal_Int32>(fMaximumX-0.5) //first category (index 0) matches with real number 1.0 , fLocalMinimum, fLocalMaximum ) ) { if(fMaximum<fLocalMaximum) @@ -822,8 +822,8 @@ double VSeriesPlotter::getMaximumYInRange( double fMinimumX, double fMaximumX ) { double fLocalMinimum, fLocalMaximum; if( m_aXSlots[nN].calculateYMinAndMaxForCategoryRange( - static_cast<sal_Int32>(fMinimumX+0.5) - , static_cast<sal_Int32>(fMaximumX+0.5) + static_cast<sal_Int32>(fMinimumX-0.5) //first category (index 0) matches with real number 1.0 + , static_cast<sal_Int32>(fMaximumX-0.5) //first category (index 0) matches with real number 1.0 , fLocalMinimum, fLocalMaximum ) ) { if(fMaximum<fLocalMaximum) |