summaryrefslogtreecommitdiff
path: root/chart2
diff options
context:
space:
mode:
authorIngrid Halama <iha@openoffice.org>2004-01-12 15:03:20 +0000
committerIngrid Halama <iha@openoffice.org>2004-01-12 15:03:20 +0000
commit8fb7f58276fd9541f6e17da81965648c8af5519f (patch)
treeac25346833a41746175bf190dcb6c71e9b19009d /chart2
parent196854dc1bc54565f5159c73238faa490834a051 (diff)
changed matching: first category (index 0) matches with real number 1.0
Diffstat (limited to 'chart2')
-rw-r--r--chart2/source/view/charttypes/VSeriesPlotter.cxx8
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)