From 873cf9ae8c853d9d5ebfa1a988ffd6daa065752e Mon Sep 17 00:00:00 2001 From: ONLYOFFICE Date: Wed, 17 Sep 2014 13:22:26 +0400 Subject: [PATCH] Removed crash when changing the color scheme in the document editor. --- OfficeWeb/sdk/Word/api.js | 9 --------- 1 file changed, 9 deletions(-) diff --git a/OfficeWeb/sdk/Word/api.js b/OfficeWeb/sdk/Word/api.js index b144cc0b..53aa1087 100644 --- a/OfficeWeb/sdk/Word/api.js +++ b/OfficeWeb/sdk/Word/api.js @@ -5377,15 +5377,6 @@ asc_docs_api.prototype.ChangeColorScheme = function (index_scheme) { data.newScheme = theme.themeElements.clrScheme; History.Add(this.WordControl.m_oLogicDocument.DrawingObjects, data); this.WordControl.m_oDrawingDocument.CheckGuiControlColors(); - var is_on = History.Is_On(); - if (is_on) { - History.TurnOff(); - } - this.chartStyleManager.init(); - this.chartPreviewManager.init(); - if (is_on) { - History.TurnOn(); - } this.asc_fireCallback("asc_onUpdateChartStyles"); _changer.calculateAfterChangeTheme(); this.WordControl.m_oDrawingDocument.ClearCachePages();