Commit be32f593 authored by Sergey.Konovalov's avatar Sergey.Konovalov

Bug 19741 - [Copy&Paste] Стиль Heading применяется к соседней по диагонали...

Bug 19741 - [Copy&Paste] Стиль Heading применяется к соседней по диагонали ячейке при копировании ячейки со стилем

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@49009 954022d7-b5bf-4e40-9824-e11837661b57
parent 1e04e49d
...@@ -6482,25 +6482,25 @@ Range.prototype.getBorderFull=function(){ ...@@ -6482,25 +6482,25 @@ Range.prototype.getBorderFull=function(){
var nCol = this.bbox.c1; var nCol = this.bbox.c1;
if("none" == borders.l.s){ if("none" == borders.l.s){
if(nCol > 1){ if(nCol > 1){
var left = this.getBorder(new CellAddress(nRow, nCol - 1)); var left = this.getBorder(new CellAddress(nRow, nCol - 1, 0));
if("none" != left.r.s) if("none" != left.r.s)
borders.l = left.r; borders.l = left.r;
} }
} }
if("none" == borders.t.s){ if("none" == borders.t.s){
if(nRow > 1){ if(nRow > 1){
var top = this.getBorder(new CellAddress(nRow - 1, nCol)); var top = this.getBorder(new CellAddress(nRow - 1, nCol, 0));
if("none" != top.b.s) if("none" != top.b.s)
borders.t = top.b; borders.t = top.b;
} }
} }
if("none" == borders.r.s){ if("none" == borders.r.s){
var right = this.getBorder(new CellAddress(nRow, nCol + 1)); var right = this.getBorder(new CellAddress(nRow, nCol + 1, 0));
if("none" != right.l.s) if("none" != right.l.s)
borders.r = right.l; borders.r = right.l;
} }
if("none" == borders.b.s){ if("none" == borders.b.s){
var bottom = this.getBorder(new CellAddress(nRow + 1, nCol)); var bottom = this.getBorder(new CellAddress(nRow + 1, nCol, 0));
if("none" != bottom.t.s) if("none" != bottom.t.s)
borders.b = bottom.t; borders.b = bottom.t;
} }
......
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