[Libreoffice-commits] .: sc/source

Kohei Yoshida kohei at kemper.freedesktop.org
Tue Jun 14 07:01:58 PDT 2011


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

New commits:
commit c65ef698a87ae054e80f11572fdac359267d6d8d
Author: Takeshi Abe <tabe at fixedpoint.jp>
Date:   Sun Jun 12 12:04:30 2011 +0900

    fdo#37776
    
    VLOOKUP/HLOOKUP now allow a single reference as the second parameter.

diff --git a/sc/source/core/tool/interpr1.cxx b/sc/source/core/tool/interpr1.cxx
index ef556d7..f4a1796 100644
--- a/sc/source/core/tool/interpr1.cxx
+++ b/sc/source/core/tool/interpr1.cxx
@@ -5806,6 +5806,12 @@ void ScInterpreter::CalculateLookup(sal_Bool HLookup)
                 return;
             }
         }
+        else if (eType == svSingleRef)
+        {
+            PopSingleRef(nCol1, nRow1, nTab1);
+            nCol2 = nCol1;
+            nRow2 = nRow1;
+        }
         else if (eType == svMatrix || eType == svExternalDoubleRef || eType == svExternalSingleRef)
         {
             pMat = GetMatrix();


More information about the Libreoffice-commits mailing list