From e9d5629a52662e03a661d013360d72eaea969ab8 Mon Sep 17 00:00:00 2001 From: Kohei Yoshida Date: Tue, 22 Nov 2011 15:51:58 -0500 Subject: [PATCH] fdo#40726: Handle external references with cell function T. --- sc/source/core/tool/interpr1.cxx | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/sc/source/core/tool/interpr1.cxx b/sc/source/core/tool/interpr1.cxx index bc33bf8ce137..739c321b242e 100644 --- a/sc/source/core/tool/interpr1.cxx +++ b/sc/source/core/tool/interpr1.cxx @@ -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();