[Libreoffice-commits] .: chart2/source
Markus Mohrhard
mmohrhard at kemper.freedesktop.org
Fri Mar 23 18:20:24 PDT 2012
chart2/source/view/charttypes/Splines.cxx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit 8a6552c0c0464d467a785cfd9c864301b81591cb
Author: Markus Mohrhard <markus.mohrhard at googlemail.com>
Date: Fri Mar 23 22:54:12 2012 +0100
use fabs for double values, not abs, fdo#47632
diff --git a/chart2/source/view/charttypes/Splines.cxx b/chart2/source/view/charttypes/Splines.cxx
index 2005c1c..6c0c877 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;
More information about the Libreoffice-commits
mailing list