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

http://bugzserver/show_bug.cgi?id=28368 - [Copy&Paste]Снятие границ со...

http://bugzserver/show_bug.cgi?id=28368 -  [Copy&Paste]Снятие границ со смерженных ячеек после копирования и вставки

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@60916 954022d7-b5bf-4e40-9824-e11837661b57
parent 21c00454
...@@ -9213,8 +9213,19 @@ ...@@ -9213,8 +9213,19 @@
//horizontal align //horizontal align
range.setAlignHorizontal(newVal.getAlignHorizontal()); range.setAlignHorizontal(newVal.getAlignHorizontal());
//borders //borders
range.setBorderSrc(newVal.getBorderFull()); var fullBorders = newVal.getBorderFull();
if(range.bbox.c2 !== range.bbox.c1 && curMerge && fullBorders)
{
//для мерженных ячеек, правая границу
var endMergeCell = val.getCell3(pasteRow, curMerge.c2);
var fullBordersEndMergeCell = endMergeCell.getBorderFull();
if(fullBordersEndMergeCell && fullBordersEndMergeCell.r)
fullBorders.r = fullBordersEndMergeCell.r;
}
range.setBorderSrc(fullBorders);
//fill //fill
range.setFill(newVal.getFill()); range.setFill(newVal.getFill());
...@@ -9234,7 +9245,7 @@ ...@@ -9234,7 +9245,7 @@
} }
} }
//если замержили range //если замержили range
c = range.bbox.c2 - autoC*plCol; c = range.bbox.c2 - autoC*plCol;
if(c === cMax) if(c === cMax)
r = range.bbox.r2 - autoC*plCol; r = range.bbox.r2 - autoC*plCol;
} }
......
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