Commit ea76739c authored by Alexander.Trofimov's avatar Alexander.Trofimov

fix bug 34254

parent 5a4d4c4e
...@@ -3678,14 +3678,14 @@ UndoRedoComment.prototype = { ...@@ -3678,14 +3678,14 @@ UndoRedoComment.prototype = {
}, },
UndoRedo : function (Type, Data, nSheetId, bUndo) UndoRedo : function (Type, Data, nSheetId, bUndo)
{ {
var oModel = ("workbook" === nSheetId) ? this.wb : this.wb.getWorksheetById(nSheetId); var oModel = (null == nSheetId) ? this.wb : this.wb.getWorksheetById(nSheetId);
if (!oModel.aComments) if (!oModel.aComments)
oModel.aComments = []; oModel.aComments = [];
var api = window["Asc"]["editor"]; var api = window["Asc"]["editor"];
if (!api.wb) if (!api.wb)
return; return;
var ws = ("workbook" === nSheetId) ? api.wb : api.wb.getWorksheetById(nSheetId); var ws = (null == nSheetId) ? api.wb : api.wb.getWorksheetById(nSheetId);
Data.worksheet = ws; Data.worksheet = ws;
var cellCommentator = ws.cellCommentator; var cellCommentator = ws.cellCommentator;
......
...@@ -75,7 +75,7 @@ ...@@ -75,7 +75,7 @@
} }
WorkbookCommentsModel.prototype.getId = function() { WorkbookCommentsModel.prototype.getId = function() {
return "workbook"; return null;
}; };
WorkbookCommentsModel.prototype.getMergedByCell = function() { WorkbookCommentsModel.prototype.getMergedByCell = function() {
return null; return null;
......
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