Commit e4150772 authored by Sergey.Luzyanin's avatar Sergey.Luzyanin Committed by Alexander.Trofimov

Bug 27357 - [AutoSave] Повреждение файла и потеря данных после смены цветовой схемы

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@59406 954022d7-b5bf-4e40-9824-e11837661b57
parent 873a558c
...@@ -3123,16 +3123,18 @@ var ASC_DOCS_API_USE_EMBEDDED_FONTS = "@@ASC_DOCS_API_USE_EMBEDDED_FONTS"; ...@@ -3123,16 +3123,18 @@ var ASC_DOCS_API_USE_EMBEDDED_FONTS = "@@ASC_DOCS_API_USE_EMBEDDED_FONTS";
}; };
spreadsheet_api.prototype.asc_ApplyColorScheme = function(bRedraw) { spreadsheet_api.prototype.asc_ApplyColorScheme = function(bRedraw) {
var wsViews = Asc["editor"].wb.wsViews; if(!window["NATIVE_EDITOR_ENJINE"])
for(var i = 0; i < wsViews.length; ++i) {
{ var wsViews = Asc["editor"].wb.wsViews;
if(wsViews[i]) for(var i = 0; i < wsViews.length; ++i)
{ {
wsViews[i].objectRender.controller.startRecalculate(); if(wsViews[i] && wsViews[i].objectRender && wsViews[i].objectRender.controller)
} {
} wsViews[i].objectRender.controller.startRecalculate();
}
this.chartPreviewManager.clearPreviews(); }
this.chartPreviewManager.clearPreviews();
}
var ws = this.wb.getWorksheet(); var ws = this.wb.getWorksheet();
//ws.objectRender.controller.applyColorScheme(); //ws.objectRender.controller.applyColorScheme();
......
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