From cd903664b070ccf4a9bcad066d62e15a8ed0e22e Mon Sep 17 00:00:00 2001 From: JuliaSvinareva Date: Fri, 15 Apr 2022 12:43:14 +0300 Subject: [PATCH] [SSE] Bug 56578 --- apps/spreadsheeteditor/main/app/controller/Print.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/apps/spreadsheeteditor/main/app/controller/Print.js b/apps/spreadsheeteditor/main/app/controller/Print.js index 2d640756d..6a5071ecb 100644 --- a/apps/spreadsheeteditor/main/app/controller/Print.js +++ b/apps/spreadsheeteditor/main/app/controller/Print.js @@ -85,7 +85,10 @@ define([ this.printSettings.menu.on('menu:hide', _.bind(this.onHidePrintMenu, this)); this.printSettings.cmbSheet.on('selected', _.bind(function (combo, record) { this.comboSheetsChange(this.printSettings, combo, record); - this._isPreviewVisible && this.api.asc_drawPrintPreview(undefined, record.value); + if (this._isPreviewVisible) { + this.notUpdateSheetSettings = true; + this.api.asc_drawPrintPreview(undefined, record.value); + } }, this)); this.printSettings.btnsSave.forEach(function (btn) { btn.on('click', _.bind(me.querySavePrintSettings, me, false));