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

Resolves: tdf#39316 add matrix empty cells to ScInterpreter::QueryMatrixType()

Change-Id: Ifa5d59e90afcfff66f2e8683fac2a9090ed615da
üst cf3f1d8d
......@@ -1852,6 +1852,16 @@ void ScInterpreter::QueryMatrixType(ScMatrixRef& xMat, short& rRetTypeExpr, sal_
PushTempToken( new ScMatrixFormulaCellToken(nCols, nRows, xMat, xRes.get()));
rRetTypeExpr = NUMBERFORMAT_LOGICAL;
}
else if ( xMat->IsEmptyResult( 0, 0))
{ // empty formula result
FormulaTokenRef xRes = new ScEmptyCellToken( true, true); // inherited, display empty
PushTempToken( new ScMatrixFormulaCellToken(nCols, nRows, xMat, xRes.get()));
}
else if ( xMat->IsEmpty( 0, 0))
{ // empty or empty cell
FormulaTokenRef xRes = new ScEmptyCellToken( false, true); // not inherited, display empty
PushTempToken( new ScMatrixFormulaCellToken(nCols, nRows, xMat, xRes.get()));
}
else
{
svl::SharedString aStr( nMatVal.GetString());
......
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