Apache OpenOffice (AOO) Bugzilla – Issue 76213
{=ISNUMBER(ref)} returns TRUE only
Last modified: 2013-08-07 15:14:21 UTC
{=ISNUMBER(range)} returns TRUE for all elements whereas {=ISERR(range)}, {=ISERROR(range)} and {=ISTEXT(range)} seem to work as expected.
More precisely: ISNUMBER in array context returns TRUE for errors.
Grabbing issue.
Adding keyword easy2dev for developers looking for something to work on. Code is in sc/source/core/tool/interpr1.cxx method ScInterpreter::ScIsValue(), in the case of svMatrix before calling pMat->IsValue(...) it has to be checked whether the value is in fact an error value, like if (pMat->GetErrorIfNotString(...) == 0) nRes = pMat->IsValue(...); Additionally, in methods ScInterpreter::ScIsNV(), ScInterpreter::ScIsErr() and ScInterpreter::ScIsError(), the expressions using GetDoubleErrorValue(pMat->GetDouble(...)) must be changed to pMat->GetErrorIfNotString(...) to avoid the tiny but not impossible chance of an arbitrary error value being assumed in case the matrix element was in fact a string.
hmblgrmbl.. I knew this was familiar.. *** This issue has been marked as a duplicate of 72508 ***
Closing dup.