Kaydet (Commit) 033d018a authored tarafından Eike Rathke's avatar Eike Rathke

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
üst 835c1586
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment