[Libreoffice-commits] core.git: sc/source

Tor Lillqvist tml at collabora.com
Fri Mar 6 06:42:25 PST 2015


 sc/source/core/opencl/op_statistical.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 6f4dc6af39ecf2f90155205ad097601a8b2f602c
Author: Tor Lillqvist <tml at collabora.com>
Date:   Fri Mar 6 16:40:59 2015 +0200

    One more #VALUE! instead of 'nan'
    
    Change-Id: Ib7fe0d9ed2f5b5aae95b73a01f1eb059a01dc2b4

diff --git a/sc/source/core/opencl/op_statistical.cxx b/sc/source/core/opencl/op_statistical.cxx
index fa5027f..f6f346f 100644
--- a/sc/source/core/opencl/op_statistical.cxx
+++ b/sc/source/core/opencl/op_statistical.cxx
@@ -2659,7 +2659,7 @@ void OpSlope::GenSlidingWindowFunction(std::stringstream &ss,
         ss << "    }\n";
 
         ss << "    if (fCount < 1.0)\n";
-        ss << "        return NAN;\n";
+        ss << "        return CreateDoubleError(errNoValue);\n";
         ss << "    else\n";
         ss << "    {\n";
         ss << "        fMeanX = fSumX * pow(fCount,-1.0);\n";


More information about the Libreoffice-commits mailing list