diff options
author | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2012-03-23 22:54:12 +0100 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2012-03-24 02:20:04 +0100 |
commit | 8a6552c0c0464d467a785cfd9c864301b81591cb (patch) | |
tree | c350734031901acf1c3461057739c1e566359439 /chart2/source/view | |
parent | a7c02ed28a8ff20ada18ba82f97b0d67f604d5d8 (diff) |
use fabs for double values, not abs, fdo#47632
Diffstat (limited to 'chart2/source/view')
-rw-r--r-- | chart2/source/view/charttypes/Splines.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/chart2/source/view/charttypes/Splines.cxx b/chart2/source/view/charttypes/Splines.cxx index 2005c1c3503c..6c0c87757d63 100644 --- a/chart2/source/view/charttypes/Splines.cxx +++ b/chart2/source/view/charttypes/Splines.cxx @@ -465,7 +465,7 @@ bool createParameterT(const tPointVecType aUniquePoints, double* t) { dx = aUniquePoints[i].first - aUniquePoints[i-1].first; dy = aUniquePoints[i].second - aUniquePoints[i-1].second; - fDiffMax = (abs(dx)>abs(dy)) ? abs(dx) : abs(dy); + fDiffMax = (fabs(dx)>fabs(dy)) ? fabs(dx) : fabs(dy); // same as above, so should not be zero dx /= fDiffMax; dy /= fDiffMax; |