From fde3c8527214c4166f94e7b20f5a2823fe894c89 Mon Sep 17 00:00:00 2001 From: Kohei Yoshida Date: Wed, 7 Dec 2011 17:56:33 -0500 Subject: fdo#43534: Reset tab index for SingleRefToVars() call. Otherwise that method will set #REF! to the cell when it sees the tab index being -1. We don't use that index in that code, so it's safe to do this. --- 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 2dd5d7a64979..6f552b7b979f 100644 --- a/sc/source/core/tool/interpr1.cxx +++ b/sc/source/core/tool/interpr1.cxx @@ -2306,7 +2306,13 @@ void ScInterpreter::ScCellExternal() SCCOL nCol; SCROW nRow; SCTAB nTab; + aRef.nTab = 0; // -1 for external ref. Plus we don't use this. SingleRefToVars(aRef, nCol, nRow, nTab); + if (nGlobalError) + { + PushIllegalParameter(); + return; + } ScCellKeywordTranslator::transKeyword(aInfoType, ScGlobal::GetLocale(), ocCell); -- cgit