[SSE] Fix Bug 57817
This commit is contained in:
parent
7bf7e8cc59
commit
67c6cbb90f
|
@ -210,7 +210,7 @@ define([
|
||||||
this._state.keepRatio=value;
|
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;
|
series = chartSettings ? chartSettings.getSeries() : null;
|
||||||
this.btnSwitch.setDisabled(!series || series.length<1 || !chartSettings || !chartSettings.getRange());
|
this.btnSwitch.setDisabled(!series || series.length<1 || !chartSettings || !chartSettings.getRange());
|
||||||
} else { //sparkline
|
} else { //sparkline
|
||||||
|
@ -1287,7 +1287,7 @@ define([
|
||||||
|
|
||||||
onSwitch: function() {
|
onSwitch: function() {
|
||||||
if (this.api){
|
if (this.api){
|
||||||
var props = this.api.asc_getChartObject();
|
var props = this.api.asc_getChartObject(true);
|
||||||
if (props) {
|
if (props) {
|
||||||
props.startEdit();
|
props.startEdit();
|
||||||
var res = props.switchRowCol();
|
var res = props.switchRowCol();
|
||||||
|
|
Loading…
Reference in a new issue