diff options
Diffstat (limited to 'sc/source/core/opencl/formulagroupcl.cxx')
-rw-r--r-- | sc/source/core/opencl/formulagroupcl.cxx | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/sc/source/core/opencl/formulagroupcl.cxx b/sc/source/core/opencl/formulagroupcl.cxx index a60f9eda8b7e..f4c4d68a2f03 100644 --- a/sc/source/core/opencl/formulagroupcl.cxx +++ b/sc/source/core/opencl/formulagroupcl.cxx @@ -2170,8 +2170,8 @@ public: if (argno == 1) { ss << - "if (isnan(" << vSubArguments[argno]->GetName() << "[gid0])) {\n" - " if (GetDoubleErrorValue(" << vSubArguments[argno]->GetName() << "[gid0]) == errNoValue)\n" + "if (isnan(" << vSubArguments[argno]->GenSlidingWindowDeclRef() << ")) {\n" + " if (GetDoubleErrorValue(" << vSubArguments[argno]->GenSlidingWindowDeclRef() << ") == errNoValue)\n" " return CreateDoubleError(errDivisionByZero);\n" "}\n"; return true; @@ -2179,9 +2179,9 @@ public: else if (argno == 0) { ss << - "if (isnan(" << vSubArguments[argno]->GetName() << "[gid0])) {\n" - " if (GetDoubleErrorValue(" << vSubArguments[argno]->GetName() << "[gid0]) == errNoValue) {\n" - " if (" << vSubArguments[1]->GetName() << "[gid0] == 0)\n" + "if (isnan(" << vSubArguments[argno]->GenSlidingWindowDeclRef() << ")) {\n" + " if (GetDoubleErrorValue(" << vSubArguments[argno]->GenSlidingWindowDeclRef() << ") == errNoValue) {\n" + " if (" << vSubArguments[1]->GenSlidingWindowDeclRef() << " == 0)\n" " return CreateDoubleError(errDivisionByZero);\n" " return 0;\n" " }\n" |