summaryrefslogtreecommitdiff
path: root/chart2
diff options
context:
space:
mode:
authorIngrid Halama <iha@openoffice.org>2004-01-23 14:21:37 +0000
committerIngrid Halama <iha@openoffice.org>2004-01-23 14:21:37 +0000
commit14c6d5bf57d646cac037f3a3286435fcc7502619 (patch)
tree50b8ec9e96ba34011d13e92d443a509cc175a8f3 /chart2
parenta3044235f809c5e34f34f16c819539505e7a9867 (diff)
correct clipping in case of logarithmic area chart
Diffstat (limited to 'chart2')
-rw-r--r--chart2/source/view/charttypes/AreaChart.cxx2
-rw-r--r--chart2/source/view/main/PlottingPositionHelper.cxx6
2 files changed, 5 insertions, 3 deletions
diff --git a/chart2/source/view/charttypes/AreaChart.cxx b/chart2/source/view/charttypes/AreaChart.cxx
index e0ad8333acfb..4790069a0115 100644
--- a/chart2/source/view/charttypes/AreaChart.cxx
+++ b/chart2/source/view/charttypes/AreaChart.cxx
@@ -111,7 +111,9 @@ double AreaChart::getTransformedDepth() const
double AreaChart::getLogicGrounding() const
{
//@todo get this from model axis crosses at if that value is between min and max
+ //@todo get this for other directions - so far only y
double fRet=0.0;
+ m_pPosHelper->clipLogicValues( 0, &fRet, 0 );
return fRet;
}
diff --git a/chart2/source/view/main/PlottingPositionHelper.cxx b/chart2/source/view/main/PlottingPositionHelper.cxx
index acfa483647c0..de63e9bf72f4 100644
--- a/chart2/source/view/main/PlottingPositionHelper.cxx
+++ b/chart2/source/view/main/PlottingPositionHelper.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: PlottingPositionHelper.cxx,v $
*
- * $Revision: 1.7 $
+ * $Revision: 1.8 $
*
- * last change: $Author: iha $ $Date: 2004-01-23 14:48:24 $
+ * last change: $Author: iha $ $Date: 2004-01-23 15:21:37 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -188,7 +188,7 @@ void PlottingPositionHelper::transformScaledLogicToScene( drawing::PolyPolygonSh
double& fX = xValues[nP];
double& fY = yValues[nP];
double& fZ = zValues[nP];
- aScenePosition = this->transformLogicToScene( fX,fY,fZ, false );
+ aScenePosition = this->transformLogicToScene( fX,fY,fZ,true );
fX = aScenePosition.PositionX;
fY = aScenePosition.PositionY;
fZ = aScenePosition.PositionZ;