summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEike Rathke <erack@redhat.com>2018-07-26 15:00:09 +0200
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2018-07-27 21:49:45 +0200
commitc20eb29560fa9d9e552c799203156c0742451eba (patch)
tree1ec50d973842724172fbc27149d49feb57700bfd
parentf3b221773c9a1afb88d4675c303f0f03a7ccaaea (diff)
Related: tdf#91502 handle FORMULA() pCur->IsInForceArray() as well
... so using it in SUMPRODUCT() and other ForceArray context works as expected. Change-Id: I60197301edcd2c24f8cb0c5fcf4dc4699d9a6165 Reviewed-on: https://gerrit.libreoffice.org/58118 Reviewed-by: Eike Rathke <erack@redhat.com> Tested-by: Jenkins (cherry picked from commit 2008a520e429bc2581001d61b63ff934c2255be0) Reviewed-on: https://gerrit.libreoffice.org/58175 Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
-rw-r--r--sc/source/core/tool/interpr1.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sc/source/core/tool/interpr1.cxx b/sc/source/core/tool/interpr1.cxx
index 3eb8fab7b968..c0558c869ad4 100644
--- a/sc/source/core/tool/interpr1.cxx
+++ b/sc/source/core/tool/interpr1.cxx
@@ -2759,7 +2759,7 @@ void ScInterpreter::ScFormula()
switch ( GetStackType() )
{
case svDoubleRef :
- if (bMatrixFormula)
+ if (bMatrixFormula || pCur->IsInForceArray())
{
SCCOL nCol1, nCol2;
SCROW nRow1, nRow2;