Commit 76e9b6a0 authored by Sergey.Konovalov's avatar Sergey.Konovalov Committed by Alexander.Trofimov

Bug 24562 - Не изменяется диапазон формулы при удалении ячеек, входящих в состав формулы

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@56470 954022d7-b5bf-4e40-9824-e11837661b57
parent d3279b62
......@@ -3515,13 +3515,14 @@ parserFormula.prototype = {
}
},
stretchArea:function ( node, sNewName ) {
stretchArea: function (node, bboxTo, sNewName) {
//todo absolute
for ( var i = 0; i < this.outStack.length; i++ ) {
var elem = this.outStack[i];
if ( elem instanceof cArea ) {
if ( elem._cells.replace( /\$/ig, "" ) == node.cellId ) {
elem.value = elem._cells = sNewName;
elem.range = bboxTo.clone();
}
}
}
......
......@@ -731,7 +731,7 @@ Vertex.prototype = {
var slave = _sn[_id];
var cell = slave.returnCell();
if( cell && cell.formulaParsed ){
cell.formulaParsed.stretchArea( this, sNewName );
cell.formulaParsed.stretchArea( this, bboxTo, sNewName );
slave.setFormula(cell.formulaParsed.assemble(), true, false);
}
}
......
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