sc/source/core/opencl/op_statistical.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit 6f4dc6af39ecf2f90155205ad097601a8b2f602c Author: Tor Lillqvist <[email protected]> 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"; _______________________________________________ Libreoffice-commits mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits
