[PE] Fix Bug 55955

This commit is contained in:
Andrey Shimagin 2022-03-10 09:12:14 +03:00
parent af011765a4
commit 476494fc92

View file

@ -11,6 +11,7 @@ class EditChartController extends Component {
this.onType = this.onType.bind(this);
this.onBorderColor = this.onBorderColor.bind(this);
this.onBorderSize = this.onBorderSize.bind(this);
this.onStyle = this.onStyle.bind(this);
const type = props.storeFocusObjects.chartObject.getType();
if (type==Asc.c_oAscChartTypeSettings.comboBarLine ||
@ -88,7 +89,7 @@ class EditChartController extends Component {
onStyle (style) {
const api = Common.EditorApi.get();
let chart = new Asc.CAscChartProp();
const chartProps = this.storeFocusObjects.chartObject.get_ChartProperties();
const chartProps = this.props.storeFocusObjects.chartObject.get_ChartProperties();
chartProps.putStyle(style);
chart.put_ChartProperties(chartProps);
api.ChartApply(chart);