Commit 9ecc22bd authored by Dmitry.Shahtanov's avatar Dmitry.Shahtanov Committed by Alexander.Trofimov

fix: Bug 30347 - [NamedRanges][CoEdit] Ошибка в консоли при редактировании...

fix: Bug 30347 - [NamedRanges][CoEdit] Ошибка в консоли при редактировании формулы после получения нового имени диапазона, используемого в формуле (http://bugzserver/show_bug.cgi?id=30347)

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@64682 954022d7-b5bf-4e40-9824-e11837661b57
parent 9ba467d5
...@@ -170,18 +170,19 @@ DependencyGraph.prototype = { ...@@ -170,18 +170,19 @@ DependencyGraph.prototype = {
} }
return arr; return arr;
}, },
deleteNode : function(node){ deleteNode:function ( node ) {
if ( node.isArea ) { if(node.isDefinedName) return;
var nodesSheetArea = this.nodesArea[node.sheetId]; if ( node.isArea ) {
if(nodesSheetArea) var nodesSheetArea = this.nodesArea[node.sheetId];
nodesSheetArea.removeElement(new RangeDataManagerElem(node.getBBox(), node)); if ( nodesSheetArea )
} nodesSheetArea.removeElement( new RangeDataManagerElem( node.getBBox(), node ) );
else { }
var nodesSheetCell = this.nodesCell[node.sheetId]; else {
if(nodesSheetCell) var nodesSheetCell = this.nodesCell[node.sheetId];
nodesSheetCell.removeElement(new RangeDataManagerElem(node.getBBox(), node)); if ( nodesSheetCell )
} nodesSheetCell.removeElement( new RangeDataManagerElem( node.getBBox(), node ) );
}, }
},
deleteNodes : function(sheetId, bbox){ deleteNodes : function(sheetId, bbox){
var bSetRefErrorOld = this.bSetRefError; var bSetRefErrorOld = this.bSetRefError;
this.bSetRefError = true; this.bSetRefError = true;
...@@ -1408,7 +1409,6 @@ Vertex.prototype = { ...@@ -1408,7 +1409,6 @@ Vertex.prototype = {
function DefNameVertex( scope, defName, defRef, defHidden, wb, isTable ) { function DefNameVertex( scope, defName, defRef, defHidden, wb, isTable ) {
this.sheetId = scope === null || scope === undefined ? "WB" : scope; this.sheetId = scope === null || scope === undefined ? "WB" : scope;
// this.sheetId = scope || "WB"; // this.sheetId = scope || "WB";
this.cellId = defName.toLowerCase(); this.cellId = defName.toLowerCase();
this.Ref = defRef; this.Ref = defRef;
......
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