diff --git a/apps/spreadsheeteditor/main/app/view/ChartSettingsDlg.js b/apps/spreadsheeteditor/main/app/view/ChartSettingsDlg.js index 25a956663..dcf98fae2 100644 --- a/apps/spreadsheeteditor/main/app/view/ChartSettingsDlg.js +++ b/apps/spreadsheeteditor/main/app/view/ChartSettingsDlg.js @@ -1288,7 +1288,6 @@ define([ 'text!spreadsheeteditor/main/app/template/ChartSettingsDlg.template' if (this._changedProps) { this._changedProps.asc_setType(rawData.type); } - this.chartSettings.asc_setType(rawData.type); this._state.SparkType = rawData.type; var changed = false, @@ -1305,7 +1304,7 @@ define([ 'text!spreadsheeteditor/main/app/template/ChartSettingsDlg.template' this.cmbEmptyCells.setValue((rawData.type !== Asc.c_oAscSparklineType.Line && value==Asc.c_oAscEDispBlanksAs.Span) ? this.textEmptyLine : value); } - this.updateSparkStyles(this.chartSettings.asc_getStyles()); + this.updateSparkStyles(this.chartSettings.asc_getStyles(rawData.type)); },