From e577ebc9403d77fe4847a2e1d55a83d432f214f8 Mon Sep 17 00:00:00 2001 From: Eike Rathke Date: Wed, 6 Feb 2013 18:14:52 +0100 Subject: resolved fdo#60366 make MATCH() accept a single cell reference Change-Id: I7059abdb6232b95e0b940b34f74bf87182510146 (cherry picked from commit c0fdab890086c2cb749c348db42eb760e31539de) Reviewed-on: https://gerrit.libreoffice.org/2018 Reviewed-by: Norbert Thiebaud Reviewed-by: Kohei Yoshida Tested-by: Kohei Yoshida --- sc/source/core/tool/interpr1.cxx | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'sc') diff --git a/sc/source/core/tool/interpr1.cxx b/sc/source/core/tool/interpr1.cxx index 0ef12c742ded..1553a9b3e631 100644 --- a/sc/source/core/tool/interpr1.cxx +++ b/sc/source/core/tool/interpr1.cxx @@ -4947,6 +4947,12 @@ void ScInterpreter::ScMatch() switch (GetStackType()) { + case svSingleRef: + PopSingleRef( nCol1, nRow1, nTab1); + nCol2 = nCol1; + nRow2 = nRow1; + nTab2 = nTab1; + break; case svDoubleRef: { PopDoubleRef(nCol1, nRow1, nTab1, nCol2, nRow2, nTab2); -- cgit v1.2.3