Commit f353dc92 authored by Alexander.Trofimov's avatar Alexander.Trofimov

fix bug 32488

parent 2d44a0d9
......@@ -721,6 +721,7 @@
}
}
var tmp = this.skipTLUpdate;
this.skipTLUpdate = false;
// Вставим форумулу в текущую позицию
this._addChars( functionName );
......@@ -728,6 +729,7 @@
if ( !isDefName ) {
this._moveCursor( kPosition, this.cursorPos - 1 );
}
this.cellEditor.skipTLUpdate = tmp;
};
CellEditor.prototype.replaceText = function ( pos, len, newText ) {
......
......@@ -1818,7 +1818,7 @@
// Вставка формулы в редактор
WorkbookView.prototype.insertFormulaInEditor = function(name, type, autoComplete) {
var t = this, ws = this.getWorksheet(), cursorPos, isNotFunction;
var t = this, ws = this.getWorksheet(), cursorPos, isNotFunction, tmp;
if (c_oAscPopUpSelectorType.None === type) {
this.getWorksheet().setSelectionInfo("value", name, /*onlyActive*/true);
......@@ -1838,7 +1838,10 @@
} else {
this.skipHelpSelector = true;
}
tmp = this.cellEditor.skipTLUpdate;
this.cellEditor.skipTLUpdate = false;
this.cellEditor.replaceText(this.lastFormulaPos, this.lastFormulaNameLength, name);
this.cellEditor.skipTLUpdate = tmp;
} else if (false === this.cellEditor.insertFormula(name, isNotFunction)) {
// Не смогли вставить формулу, закроем редактор, с сохранением текста
this.cellEditor.close(true);
......
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