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

fdo#86219 use vector replication when obtaining scalar for jump matrix

Change-Id: Id778dd7f649b480538fe757aab70c5e890123f31
üst 187ffc5e
......@@ -2160,7 +2160,8 @@ double ScInterpreter::GetDoubleFromMatrix(const ScMatrixRef& pMat)
SCSIZE nCols, nRows, nC, nR;
pMat->GetDimensions( nCols, nRows);
pJumpMatrix->GetPos( nC, nR);
if ( nC < nCols && nR < nRows )
// Use vector replication for single row/column arrays.
if ( (nC < nCols || nCols == 1) && (nR < nRows || nRows == 1) )
return pMat->GetDouble( nC, nR);
SetError( errNoValue);
......
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