You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@openoffice.apache.org by al...@apache.org on 2012/02/16 13:44:14 UTC
svn commit: r1244961 -
/incubator/ooo/trunk/main/sc/source/core/tool/interpr5.cxx
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.