summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEike Rathke <erack@redhat.com>2017-06-15 13:05:16 +0200
committerEike Rathke <erack@redhat.com>2017-06-15 13:05:56 +0200
commit033d018a3a1d345d61f3c4dc4da693cdd4004dea (patch)
treecad760a0aa3073ee8cd233ccf7dd4b48db64d736
parent835c1586f60e6bc03e045e8210e38876e0fe1abc (diff)
Resolves: tdf#104989 a matrix/array formula cell needs to have dimensions
Most spreadsheet functions don't need it, but some may. Change-Id: I954acaa0a64c4dac8d15acd5b3f404019a7e0bce
-rw-r--r--sc/source/ui/unoobj/funcuno.cxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/sc/source/ui/unoobj/funcuno.cxx b/sc/source/ui/unoobj/funcuno.cxx
index f7865ea7df76..8fb5c3d57b8e 100644
--- a/sc/source/ui/unoobj/funcuno.cxx
+++ b/sc/source/ui/unoobj/funcuno.cxx
@@ -592,6 +592,8 @@ uno::Any SAL_CALL ScFunctionAccess::callFunction( const OUString& aName,
pDoc, aFormulaPos, aTokenArr, formula::FormulaGrammar::GRAM_API,
mbArray ? ScMatrixMode::Formula : ScMatrixMode::NONE );
pFormula = pDoc->SetFormulaCell(aFormulaPos, pFormula);
+ if (mbArray && pFormula)
+ pFormula->SetMatColsRows(1,1); // the cell dimensions (only one cell)
// call GetMatrix before GetErrCode because GetMatrix always recalculates
// if there is no matrix result