Commit ef6a61a3 authored by Alexander.Trofimov's avatar Alexander.Trofimov Committed by Alexander.Trofimov

isLastCol - > col === range.c2

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@51632 954022d7-b5bf-4e40-9824-e11837661b57
parent 44727d12
......@@ -2574,7 +2574,6 @@
for (var isMerged = false, hasHideCol = false, col = range.c1; col <= range.c2 && col < this.nColsCount; ++col, isMerged = false) {
if (this.cols[col].width < this.width_1px) {hasHideCol = true; continue;}
var isFirstCol = col === range.c1;
var isLastCol = col === range.c2;
if (!mergedCellsStage) {
// ToDo возможно можно оптимизировать
......@@ -2675,7 +2674,7 @@
drawVerticalBorder.call(this, lb, tb, tbPrev, bb, bbPrev, x1, y1, y2);
}
}
if (!mergedCellsStage || isLastCol) {
if (!mergedCellsStage || col === range.c2) {
// draw right border
drawVerticalBorder.call(this, rb, tb, tbNext, bb, bbNext, x2, y1, y2);
}
......
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