diff options
author | Kohei Yoshida <kohei.yoshida@suse.com> | 2011-12-07 17:56:33 -0500 |
---|---|---|
committer | Kohei Yoshida <kohei.yoshida@suse.com> | 2011-12-07 17:59:52 -0500 |
commit | fde3c8527214c4166f94e7b20f5a2823fe894c89 (patch) | |
tree | 1b288385fb670376ee99db90d376652bdf9e2dac /sc | |
parent | 4d247bd3c0b3a2d7460dedfb7050260eff2c0999 (diff) |
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.
Diffstat (limited to 'sc')
-rw-r--r-- | sc/source/core/tool/interpr1.cxx | 6 |
1 files changed, 6 insertions, 0 deletions
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); |