Commit cddc668b authored by Dmitry.Vikulov's avatar Dmitry.Vikulov Committed by Alexander.Trofimov

Fix Bug 21904 - Ошибка в консоли при Undo/Redo добавления листа в таблице

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@51348 954022d7-b5bf-4e40-9824-e11837661b57
parent 5c2e3767
......@@ -246,7 +246,8 @@
this.model.handlers.add("showWorksheet", function (wsId) {
self.showWorksheetById(wsId);
var ws = self.getWorksheetById(wsId);
self.handlers.trigger("asc_onActiveSheetChanged", ws.model.getIndex());
if ( ws )
self.handlers.trigger("asc_onActiveSheetChanged", ws.model.getIndex());
});
this.model.handlers.add("setSelection", function () {
self._onSetSelection.apply(self, arguments);
......@@ -992,7 +993,8 @@
showWorksheetById: function (id) {
var wsModel = this.model.getWorksheetById(id);
this.showWorksheet(wsModel.getIndex());
if ( wsModel )
this.showWorksheet(wsModel.getIndex());
},
/** @param index {Number} */
......
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