Commit 30bed297 authored by Alexander.Trofimov's avatar Alexander.Trofimov Committed by Alexander.Trofimov

Переход от worksheet._getMergedCellsRange на model.getMergedByCell

getActiveCellLock -> getActiveCell

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@50519 954022d7-b5bf-4e40-9824-e11837661b57
parent 322444f0
......@@ -793,7 +793,7 @@
return false;
var ws = t.getWorksheet();
var activeCellRange = ws.getActiveCellLock (x, y, isCoord);
var activeCellRange = ws.getActiveCell(x, y, isCoord);
var arn = ws.activeRange.clone(true);
arn.startCol = ws.activeRange.startCol;
arn.startRow = ws.activeRange.startRow;
......@@ -1255,7 +1255,7 @@
}
}
var activeCellRange = ws.getActiveCellLock (0, 0, /*isCoord*/false);
var activeCellRange = ws.getActiveCell(0, 0, /*isCoord*/false);
if (false === this.collaborativeEditing.isCoAuthoringExcellEnable()) {
// Запрещено совместное редактирование
......
......@@ -8877,7 +8877,7 @@
return val.length > 0 && val[0].text.length > 1 && val[0].text.charAt(0) === "=" ? true : false;
},
getActiveCellLock: function (x, y, isCoord) {
getActiveCell: function (x, y, isCoord) {
var t = this;
var col, row;
if (isCoord) {
......@@ -8889,15 +8889,12 @@
col = col.col;
row = row.row;
} else {
//col = this.model._getCol(t.activeRange.startCol).getId();
//row = this.model._getRow(t.activeRange.startRow).getId();
col = t.activeRange.startCol;
row = t.activeRange.startRow;
}
// Проверим замерженность
var mergedRange = this._getMergedCellsRange(col, row);
var mergedRange = this.model.getMergedByCell(row, col);
return mergedRange ? mergedRange : asc_Range(col, row, col, row);
},
......
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