Commit 7a5b88ff authored by Igor.Zotov's avatar Igor.Zotov Committed by Alexander.Trofimov

http://bugzserver/show_bug.cgi?id=24935 - Удаление строки, являющейся...

http://bugzserver/show_bug.cgi?id=24935 - Удаление строки, являющейся заголовком форматированной таблицы без автофильтра, не осуществляется и вызывает ошибку в консоли

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@57190 954022d7-b5bf-4e40-9824-e11837661b57
parent f96d2579
...@@ -4679,7 +4679,7 @@ function Result() { ...@@ -4679,7 +4679,7 @@ function Result() {
this.x = null; this.x = null;
this.y = null; this.y = null;
this.width = null; this.width = null;
this.heigth = null; this.height = null;
this.id = null; this.id = null;
this.idNext = null; this.idNext = null;
this.hiddenRows = null; this.hiddenRows = null;
...@@ -4689,10 +4689,11 @@ Result.prototype.clone = function() { ...@@ -4689,10 +4689,11 @@ Result.prototype.clone = function() {
res.x = this.x; res.x = this.x;
res.y = this.y; res.y = this.y;
res.width = this.width; res.width = this.width;
res.heigth = this.heigth; res.height = this.height;
res.id = this.id; res.id = this.id;
res.idNext = this.idNext; res.idNext = this.idNext;
res.hiddenRows = this.hiddenRows; res.hiddenRows = this.hiddenRows;
res.showButton = this.showButton;
return res; return res;
}; };
...@@ -5238,7 +5238,7 @@ var gUndoInsDelCellsFlag = true; ...@@ -5238,7 +5238,7 @@ var gUndoInsDelCellsFlag = true;
for(var s = 0; s < cloneFilterColums.length; s++) for(var s = 0; s < cloneFilterColums.length; s++)
{ {
if(zF == cloneFilterColums[s].ColId) if(zF == cloneFilterColums[s].ColId)
cloneFilterColums.splice(s,1); cloneFilterColums.splice(s, 1);
} }
} }
...@@ -5329,7 +5329,7 @@ var gUndoInsDelCellsFlag = true; ...@@ -5329,7 +5329,7 @@ var gUndoInsDelCellsFlag = true;
{ {
for(var s = 0; s < filterColums.length; s++) for(var s = 0; s < filterColums.length; s++)
{ {
if(filterColums[s].ColId == filR && filR > endCount) if(cloneFilterColums[s] && filterColums[s].ColId == filR && filR > endCount)
{ {
cloneFilterColums[s].ColId = filR + val; cloneFilterColums[s].ColId = filR + val;
endCount = filR + val; endCount = filR + val;
...@@ -5425,6 +5425,9 @@ var gUndoInsDelCellsFlag = true; ...@@ -5425,6 +5425,9 @@ var gUndoInsDelCellsFlag = true;
var buttons = this.allButtonAF; var buttons = this.allButtonAF;
if(type == 'add') if(type == 'add')
{ {
if(array.showButton === false)
return;
for(var j = 0; j < val; j++) for(var j = 0; j < val; j++)
{ {
if(val != 1) if(val != 1)
...@@ -5494,8 +5497,8 @@ var gUndoInsDelCellsFlag = true; ...@@ -5494,8 +5497,8 @@ var gUndoInsDelCellsFlag = true;
isChange = true; isChange = true;
}; };
if(!isChange) //if(!isChange)
buttons[buttons.length] = array; //buttons[buttons.length] = array;
} }
}; };
}, },
......
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