[Libreoffice-commits] .: sc/source

Kohei Yoshida kohei at kemper.freedesktop.org
Tue Nov 22 12:52:40 PST 2011


 sc/source/core/tool/interpr1.cxx |   16 ++++++++++++++++
 1 file changed, 16 insertions(+)

New commits:
commit e9d5629a52662e03a661d013360d72eaea969ab8
Author: Kohei Yoshida <kohei.yoshida at suse.com>
Date:   Tue Nov 22 15:51:58 2011 -0500

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

diff --git a/sc/source/core/tool/interpr1.cxx b/sc/source/core/tool/interpr1.cxx
index bc33bf8..739c321 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();


More information about the Libreoffice-commits mailing list