From 516d986c1d2fc1c254ec3ee6ab155bfe169a6a80 Mon Sep 17 00:00:00 2001 From: Julia Radzhabova Date: Tue, 20 Sep 2016 13:33:22 +0300 Subject: [PATCH] [SSE] Fix bug with loading spark properties. --- apps/spreadsheeteditor/main/app/view/ChartSettings.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/apps/spreadsheeteditor/main/app/view/ChartSettings.js b/apps/spreadsheeteditor/main/app/view/ChartSettings.js index a08a4f36e..af2f53290 100644 --- a/apps/spreadsheeteditor/main/app/view/ChartSettings.js +++ b/apps/spreadsheeteditor/main/app/view/ChartSettings.js @@ -76,7 +76,7 @@ define([ DisabledControls: false, keepRatio: false, SparkType: -1, - LineWeight: this._pt2mm(1), + LineWeight: 1, MarkersPoint: false, HighPoint: false, LowPoint: false, @@ -458,6 +458,7 @@ define([ this._state.keepRatio=value; } } else { //sparkline + this._originalProps = props; this.isChart = false; var type = props.asc_getType(); @@ -928,9 +929,8 @@ define([ var me = this; var win, props; if (me.api){ - props = me.api.asc_getChartObject(); + props = (me.isChart) ? me.api.asc_getChartObject() : me._originalProps; if (props) { - (new SSE.Views.ChartSettingsDlg( { chartSettings: props,