incubator-ooo-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From a..@apache.org
Subject svn commit: r1244961 - /incubator/ooo/trunk/main/sc/source/core/tool/interpr5.cxx
Date Thu, 16 Feb 2012 12:44:14 GMT
Author: alg
Date: Thu Feb 16 12:44:13 2012
New Revision: 1244961

URL: http://svn.apache.org/viewvc?rev=1244961&view=rev
Log:
#118029# Applied patch from Regina Henschel to fix that task. Thanks to Regina

Modified:
    incubator/ooo/trunk/main/sc/source/core/tool/interpr5.cxx

Modified: incubator/ooo/trunk/main/sc/source/core/tool/interpr5.cxx
URL: http://svn.apache.org/viewvc/incubator/ooo/trunk/main/sc/source/core/tool/interpr5.cxx?rev=1244961&r1=1244960&r2=1244961&view=diff
==============================================================================
--- incubator/ooo/trunk/main/sc/source/core/tool/interpr5.cxx (original)
+++ incubator/ooo/trunk/main/sc/source/core/tool/interpr5.cxx Thu Feb 16 12:44:13 2012
@@ -1936,14 +1936,10 @@ double lcl_TGetColumnSumProduct( ScMatri
     return fResult;
 }
 
+// #118029# no mathematical signum, but used to switch between adding and subtracting
 double lcl_GetSign(double fValue)
 {
-    if (fValue < 0.0)
-        return -1.0;
-    else if (fValue > 0.0)
-        return 1.0;
-    else
-        return 0.0;
+    return (fValue >= 0.0 ? 1.0 : -1.0 );
 }
 
 /* Calculates a QR decomposition with Householder reflection.



Mime
View raw message