Kaydet (Commit) fde3c852 authored tarafından Kohei Yoshida's avatar Kohei Yoshida

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.
üst 4d247bd3
...@@ -2306,7 +2306,13 @@ void ScInterpreter::ScCellExternal() ...@@ -2306,7 +2306,13 @@ void ScInterpreter::ScCellExternal()
SCCOL nCol; SCCOL nCol;
SCROW nRow; SCROW nRow;
SCTAB nTab; SCTAB nTab;
aRef.nTab = 0; // -1 for external ref. Plus we don't use this.
SingleRefToVars(aRef, nCol, nRow, nTab); SingleRefToVars(aRef, nCol, nRow, nTab);
if (nGlobalError)
{
PushIllegalParameter();
return;
}
ScCellKeywordTranslator::transKeyword(aInfoType, ScGlobal::GetLocale(), ocCell); ScCellKeywordTranslator::transKeyword(aInfoType, ScGlobal::GetLocale(), ocCell);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment