summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorEike Rathke <erack@redhat.com>2014-06-13 10:50:27 +0200
committerAndras Timar <andras.timar@collabora.com>2014-06-18 14:33:57 +0200
commit5c99b24143d094cbde671b9f593ee7945b074cfd (patch)
tree14195ee07679fe3146a27abfcf3ee0b26a12eb56 /sc
parentb7b7741627dfe0ec4374a47a59a478e64a93f10d (diff)
resolved fdo#79957 propagate ForceArray through jump tokens
ForceArray parameters weren't propagated and enforced to array arguments on svJump tokens (FormulaJumpToken), namely IF, CHOOSE, IFERROR and IFNA. (cherry picked from commit c9d037e5e8e5850e9c69372580e7a506b573fc2a) Conflicts: include/formula/token.hxx Change-Id: Icf9074f11b826655a52858d778d9a0122d207aa4 Reviewed-on: https://gerrit.libreoffice.org/9767 Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com> Tested-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
Diffstat (limited to 'sc')
-rw-r--r--sc/source/core/inc/interpre.hxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sc/source/core/inc/interpre.hxx b/sc/source/core/inc/interpre.hxx
index aa2dd73982c6..d082648b8758 100644
--- a/sc/source/core/inc/interpre.hxx
+++ b/sc/source/core/inc/interpre.hxx
@@ -867,7 +867,7 @@ public:
inline void ScInterpreter::MatrixDoubleRefToMatrix()
{
- if ( bMatrixFormula && GetStackType() == formula::svDoubleRef )
+ if ( (bMatrixFormula || pCur->HasForceArray()) && GetStackType() == formula::svDoubleRef )
{
GetTokenMatrixMap(); // make sure it exists, create if not.
PopDoubleRefPushMatrix();