Kaydet (Commit) 1e6cc2c8 authored tarafından Takeshi Abe's avatar Takeshi Abe Kaydeden (comit) Noel Grandin

sc: Drop ineffective SetError()

as GetNewMat() already sets error FormulaError::MatrixSize
when returning null.  In fact IllegalArgument is irrelevant
here.

Change-Id: Ib7354c2e861b666deef1353b2c26d876668d77e3
Reviewed-on: https://gerrit.libreoffice.org/64420
Tested-by: Jenkins
Reviewed-by: 's avatarNoel Grandin <noel.grandin@collabora.co.uk>
üst 1e3d6c80
......@@ -438,10 +438,7 @@ ScMatrixRef ScInterpreter::GetMatrix()
PopExternalSingleRef(pToken);
pMat = GetNewMat( 1, 1, true);
if (!pMat)
{
SetError( FormulaError::IllegalArgument);
break;
}
if (nGlobalError != FormulaError::NONE)
{
pMat->PutError( nGlobalError, 0, 0);
......
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