From b8e9f185c509213b4daae018ec27483dacdad2a0 Mon Sep 17 00:00:00 2001 From: Bartosz Kosiorek Date: Tue, 6 Feb 2018 00:45:32 +0100 Subject: tdf#114820 Fix reading external reference for VLOOKUP and HLOOKUP Change-Id: Iaa1307123d97a740bdaf90647e8adff224211851 Reviewed-on: https://gerrit.libreoffice.org/49263 Tested-by: Jenkins Reviewed-by: Eike Rathke (cherry picked from commit 5c3d0a70a0edb182714725ef920d74667feffb0e) Reviewed-on: https://gerrit.libreoffice.org/49315 --- sc/source/core/tool/interpr1.cxx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/sc/source/core/tool/interpr1.cxx b/sc/source/core/tool/interpr1.cxx index ab3f28d27225..e59b46c9f42f 100644 --- a/sc/source/core/tool/interpr1.cxx +++ b/sc/source/core/tool/interpr1.cxx @@ -7151,7 +7151,9 @@ bool ScInterpreter::FillEntry(ScQueryEntry& rEntry) } } break; - case svMatrix : + case svExternalDoubleRef: + case svExternalSingleRef: + case svMatrix: { svl::SharedString aStr; const ScMatValType nType = GetDoubleOrStringFromMatrix(rItem.mfVal, aStr); @@ -7168,6 +7170,7 @@ bool ScInterpreter::FillEntry(ScQueryEntry& rEntry) } // switch ( GetStackType() ) return true; } + void ScInterpreter::ScVLookup() { CalculateLookup(false); -- cgit v1.2.3