[Libreoffice-commits] .: Branch 'libreoffice-3-5' - chart2/source

Kohei Yoshida kohei at kemper.freedesktop.org
Fri Mar 23 20:13:59 PDT 2012


 chart2/source/view/charttypes/Splines.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 62cd23f0cf538dccc30f1a38578d4c5925703029
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
    
    Signed-off-by: Kohei Yoshida <kohei.yoshida at gmail.com>

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