From 3a8d65feaa90201e6616935081799fe95e89a610 Mon Sep 17 00:00:00 2001 From: GoshaZotov Date: Mon, 6 Jan 2025 01:23:57 +0300 Subject: [PATCH] [se] is3DRef local flag support --- cell/model/FormulaObjects/parserFormula.js | 2 +- common/editorscommon.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/cell/model/FormulaObjects/parserFormula.js b/cell/model/FormulaObjects/parserFormula.js index a50ba3386a..6284edc8be 100644 --- a/cell/model/FormulaObjects/parserFormula.js +++ b/cell/model/FormulaObjects/parserFormula.js @@ -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; diff --git a/common/editorscommon.js b/common/editorscommon.js index 9aa76bca44..be3e3ca86d 100644 --- a/common/editorscommon.js +++ b/common/editorscommon.js @@ -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) { @@ -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;