From 67c6cbb90fc2676c3af3c415b73811820205d7f2 Mon Sep 17 00:00:00 2001 From: Julia Radzhabova Date: Thu, 30 Jun 2022 14:41:55 +0300 Subject: [PATCH] [SSE] Fix Bug 57817 --- apps/spreadsheeteditor/main/app/view/ChartSettings.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/spreadsheeteditor/main/app/view/ChartSettings.js b/apps/spreadsheeteditor/main/app/view/ChartSettings.js index 797194841..ea4c29e05 100644 --- a/apps/spreadsheeteditor/main/app/view/ChartSettings.js +++ b/apps/spreadsheeteditor/main/app/view/ChartSettings.js @@ -210,7 +210,7 @@ define([ this._state.keepRatio=value; } - var chartSettings = this.api.asc_getChartObject(), + var chartSettings = this.api.asc_getChartObject(true), // don't lock chart object series = chartSettings ? chartSettings.getSeries() : null; this.btnSwitch.setDisabled(!series || series.length<1 || !chartSettings || !chartSettings.getRange()); } else { //sparkline @@ -1287,7 +1287,7 @@ define([ onSwitch: function() { if (this.api){ - var props = this.api.asc_getChartObject(); + var props = this.api.asc_getChartObject(true); if (props) { props.startEdit(); var res = props.switchRowCol();