gets Sheet name for multi cell named range, fixes #680

This commit is contained in:
Felix Zumstein 2017-06-19 14:44:55 +02:00
parent 36022a0f56
commit 892c77235d

View File

@ -811,7 +811,7 @@ function stringify_formula(formula/*Array<any>*/, range, cell/*:any*/, supbooks,
break;
case 'PtgArea3d': /* 2.5.198.28 TODO */
type = f[1][0]; ixti = /*::Number(*/f[1][1]/*::)*/; r = f[1][2];
sname = (supbooks && supbooks[1] ? supbooks[1][ixti+1] : "**MISSING**");
sname = supbooks && supbooks[1] ? supbooks[1][ixti+1] : (supbooks.SheetNames[ixti] ? supbooks.SheetNames[ixti] : "**MISSING**");
stack.push(sname + "!" + encode_range((r/*:any*/)));
break;
case 'PtgAttrSum': /* 2.5.198.41 */