[SSE] Fix bug with loading spark properties.

This commit is contained in:
Julia Radzhabova 2016-09-20 13:33:22 +03:00
parent 88a76ed509
commit 516d986c1d

View file

@ -76,7 +76,7 @@ define([
DisabledControls: false, DisabledControls: false,
keepRatio: false, keepRatio: false,
SparkType: -1, SparkType: -1,
LineWeight: this._pt2mm(1), LineWeight: 1,
MarkersPoint: false, MarkersPoint: false,
HighPoint: false, HighPoint: false,
LowPoint: false, LowPoint: false,
@ -458,6 +458,7 @@ define([
this._state.keepRatio=value; this._state.keepRatio=value;
} }
} else { //sparkline } else { //sparkline
this._originalProps = props;
this.isChart = false; this.isChart = false;
var type = props.asc_getType(); var type = props.asc_getType();
@ -928,9 +929,8 @@ define([
var me = this; var me = this;
var win, props; var win, props;
if (me.api){ if (me.api){
props = me.api.asc_getChartObject(); props = (me.isChart) ? me.api.asc_getChartObject() : me._originalProps;
if (props) { if (props) {
(new SSE.Views.ChartSettingsDlg( (new SSE.Views.ChartSettingsDlg(
{ {
chartSettings: props, chartSettings: props,