[Libreoffice-commits] .: Branch 'libreoffice-3-4' - sc/source

Kohei Yoshida kohei at kemper.freedesktop.org
Tue Jun 14 07:04:45 PDT 2011


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

New commits:
commit 4fc6f57f47a3e43a90eeafa8f8057ead3fda29dc
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.
    
    Signed-off-by: Kohei Yoshida <kyoshida at novell.com>

diff --git a/sc/source/core/tool/interpr1.cxx b/sc/source/core/tool/interpr1.cxx
index 90eeeb6..8121344 100644
--- a/sc/source/core/tool/interpr1.cxx
+++ b/sc/source/core/tool/interpr1.cxx
@@ -5805,6 +5805,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