summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorEike Rathke <erack@redhat.com>2022-11-03 19:10:00 +0100
committerEike Rathke <erack@redhat.com>2022-11-04 01:02:34 +0100
commit94c64c0c999eeaa91ebdc335186289046eacdc4f (patch)
tree5e1bbd2455f9e82bd0aec7aee4780a0ebc3501a9 /sc
parent2640796d90ad4c69f5093e7b3353d43b647901e1 (diff)
Related: tdf#151863 Set #REF! error if reference list is not convertible
i.e. to array/matrix that a function or operator may expect. That indicates the actual problem better than #VALUE! and also seems to be what Excel does. Change-Id: I9c3857613e330f9a93d4a0595e740106addc6e67 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/142250 Reviewed-by: Eike Rathke <erack@redhat.com> Tested-by: Jenkins
Diffstat (limited to 'sc')
-rw-r--r--sc/source/core/tool/interpr4.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sc/source/core/tool/interpr4.cxx b/sc/source/core/tool/interpr4.cxx
index 90b02b1e7f47..b122a836d654 100644
--- a/sc/source/core/tool/interpr4.cxx
+++ b/sc/source/core/tool/interpr4.cxx
@@ -1581,7 +1581,7 @@ bool ScInterpreter::ConvertMatrixParameters()
eType != formula::ParamClass::ForceArray)
{
// can't convert to matrix
- SetError( FormulaError::NoValue);
+ SetError( FormulaError::NoRef);
}
// else: the consuming function has to decide if and how to
// handle a reference list argument in array context.