Commit effbd684 authored by Sergey Konovalov's avatar Sergey Konovalov

findRangeUnderCursor for name3D

parent 32c25ca8
......@@ -3071,6 +3071,7 @@ var cFormulaOperators = {
switch (item.oper.type) {
case cElementType.table:
case cElementType.name:
case cElementType.name3D:
ref = item.oper.toRef();
break;
case cElementType.cell:
......@@ -4686,7 +4687,10 @@ parserFormula.prototype.parse = function(local, digitDelim) {
}
this.RefPos.push(pos);
} else if (parserHelp.isName.call(this, this.Formula, this.pCurrPos)) {
pos.end = this.pCurrPos;
found_operand = new cName3D(this.operand_str, wsF);
pos.oper = found_operand;
this.RefPos.push(pos);
}
this.countRef++;
}
......
......@@ -863,7 +863,8 @@
break;
}
case cElementType.table :
case cElementType.name : {
case cElementType.name :
case cElementType.name3D : {
var nameRef = r.oper.toRef(bbox);
if (nameRef instanceof AscCommonExcel.cError) {
continue;
......@@ -983,7 +984,8 @@
break;
}
case cElementType.table :
case cElementType.name : {
case cElementType.name :
case cElementType.name3D : {
var nameRef = r.oper.toRef(bbox);
if (nameRef instanceof AscCommonExcel.cError) {
continue;
......
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