lab.nexedi.com will be down from Thursday, 20 March 2025, 07:30:00 UTC for a duration of approximately 2 hours

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 @@ ...@@ -793,7 +793,7 @@
return false; return false;
var ws = t.getWorksheet(); var ws = t.getWorksheet();
var activeCellRange = ws.getActiveCellLock (x, y, isCoord); var activeCellRange = ws.getActiveCell(x, y, isCoord);
var arn = ws.activeRange.clone(true); var arn = ws.activeRange.clone(true);
arn.startCol = ws.activeRange.startCol; arn.startCol = ws.activeRange.startCol;
arn.startRow = ws.activeRange.startRow; arn.startRow = ws.activeRange.startRow;
...@@ -1255,7 +1255,7 @@ ...@@ -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()) { if (false === this.collaborativeEditing.isCoAuthoringExcellEnable()) {
// Запрещено совместное редактирование // Запрещено совместное редактирование
......
...@@ -8877,7 +8877,7 @@ ...@@ -8877,7 +8877,7 @@
return val.length > 0 && val[0].text.length > 1 && val[0].text.charAt(0) === "=" ? true : false; 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 t = this;
var col, row; var col, row;
if (isCoord) { if (isCoord) {
...@@ -8889,15 +8889,12 @@ ...@@ -8889,15 +8889,12 @@
col = col.col; col = col.col;
row = row.row; row = row.row;
} else { } else {
//col = this.model._getCol(t.activeRange.startCol).getId();
//row = this.model._getRow(t.activeRange.startRow).getId();
col = t.activeRange.startCol; col = t.activeRange.startCol;
row = t.activeRange.startRow; 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); 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