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

Убрал лишний вызов _getMergedCellsRange из getCursorTypeFromXY (для комментариев)

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@49864 954022d7-b5bf-4e40-9824-e11837661b57
parent 0ef67301
...@@ -1531,13 +1531,12 @@ asc_CCellCommentator.prototype = { ...@@ -1531,13 +1531,12 @@ asc_CCellCommentator.prototype = {
if (!this.bShow) if (!this.bShow)
return comments; return comments;
if ((_col == null) || (_col == undefined) || (_row == null) || (_row == undefined)) { if (null == _col || null == _row) {
var selectedCell = _this.worksheet.getSelectedRange(); var selectedCell = _this.worksheet.getSelectedRange();
var oFirst = selectedCell.getFirst(); var oFirst = selectedCell.getFirst();
_col = oFirst.col - 1; _col = oFirst.col - 1;
_row = oFirst.row - 1; _row = oFirst.row - 1;
} } else
else
mergedRange = _this.worksheet._getMergedCellsRange(col, row); mergedRange = _this.worksheet._getMergedCellsRange(col, row);
for (var i = 0; i < _this.aComments.length; i++) { for (var i = 0; i < _this.aComments.length; i++) {
......
...@@ -5203,18 +5203,16 @@ ...@@ -5203,18 +5203,16 @@
} }
// Проверим есть ли комменты // Проверим есть ли комменты
var mergedRande = this._getMergedCellsRange(c.col, r.row); var comments = this.cellCommentator.asc_getComments(c.col, r.row);
var coords = undefined;
var comments = this.cellCommentator.asc_getComments(mergedRande ? mergedRande.c1 : c.col, mergedRande ? mergedRande.r1 : r.row); var indexes = undefined;
var coords = this.cellCommentator.getCommentsCoords(comments);
var indexes = []; if (0 < comments.length) {
for (var i = 0; i < comments.length; i++) { indexes = [];
indexes.push(comments[i].asc_getId()); for (var i = 0; i < comments.length; ++i) {
} indexes.push(comments[i].asc_getId());
}
if (indexes.length <= 0) { coords = this.cellCommentator.getCommentsCoords(comments);
coords = undefined;
indexes = undefined;
} }
// Проверим, может мы в гиперлинке // Проверим, может мы в гиперлинке
......
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