Skip to content

Commit

Permalink
[se] is3DRef local flag support
Browse files Browse the repository at this point in the history
  • Loading branch information
GoshaZotov committed Jan 5, 2025
1 parent 4e44030 commit 3a8d65f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion cell/model/FormulaObjects/parserFormula.js
Original file line number Diff line number Diff line change
Expand Up @@ -8073,7 +8073,7 @@ function parserFormula( formula, parent, _ws ) {
found_operand = new cError(ph.operand_str);
}

/* Referens to 3D area: Sheet1:Sheet3!A1:B3, Sheet1:Sheet3!B3, Sheet1!B3*/ else if ((_3DRefTmp = parserHelp.is3DRef.call(ph, t.Formula, ph.pCurrPos))[0]) {
/* Referens to 3D area: Sheet1:Sheet3!A1:B3, Sheet1:Sheet3!B3, Sheet1!B3*/ else if ((_3DRefTmp = parserHelp.is3DRef.call(ph, t.Formula, ph.pCurrPos, null, local))[0]) {

t.is3D = true;

Expand Down
4 changes: 2 additions & 2 deletions common/editorscommon.js
Original file line number Diff line number Diff line change
Expand Up @@ -3434,7 +3434,7 @@

return false;
};
parserHelper.prototype.is3DRef = function (formula, start_pos, support_digital_start)
parserHelper.prototype.is3DRef = function (formula, start_pos, support_digital_start, local)
{
if (this instanceof parserHelper)
{
Expand Down Expand Up @@ -3476,7 +3476,7 @@
}

/* shortlink return obj {fullstring, externalLink, defname} */
let shortLink = isExternalShortLink(subSTR) || (!external && isExternalShortLinkLocal(subSTR));
let shortLink = isExternalShortLink(subSTR) || (local && !external && isExternalShortLinkLocal(subSTR));

if (shortLink) {
this.pCurrPos += shortLink.fullString.length + externalLength;
Expand Down

0 comments on commit 3a8d65f

Please sign in to comment.