fdo#40726: Handle external references with cell function T.

This commit is contained in:
Kohei Yoshida 2011-11-22 15:51:58 -05:00
parent f055e0e361
commit e9d5629a52

View file

@ -2812,6 +2812,22 @@ void ScInterpreter::ScT()
}
}
break;
case svExternalSingleRef:
case svExternalDoubleRef:
{
ScMatrixRef pMat = GetMatrix();
if (!pMat || !pMat->GetElementCount())
{
SetError( errIllegalParameter);
break;
}
if (pMat->IsString(0, 0))
PushString(pMat->GetString(0, 0));
else
PushString(EMPTY_STRING);
}
break;
case svDouble :
{
PopError();