diff --git a/apps/documenteditor/main/app/view/ShapeSettings.js b/apps/documenteditor/main/app/view/ShapeSettings.js index beceb2289..b856e4a8c 100644 --- a/apps/documenteditor/main/app/view/ShapeSettings.js +++ b/apps/documenteditor/main/app/view/ShapeSettings.js @@ -1156,7 +1156,7 @@ define([ this._state.GradColor = color; } - // this.chShadow.setValue(!!shapeprops.get_shadow()); + this.chShadow.setValue(!!shapeprops.asc_getShadow(), true); this._noApply = false; } @@ -1603,7 +1603,7 @@ define([ onCheckShadow: function(field, newValue, oldValue, eOpts) { if (this.api) { var props = new Asc.asc_CShapeProperty(); - props.put_shadow((field.getValue()=='checked') ? new Asc.asc_CShadowProperty() : null); + props.asc_putShadow((field.getValue()=='checked') ? new Asc.asc_CShadowProperty() : null); this.imgprops.put_ShapeProperties(props); this.api.ImgApply(this.imgprops); } diff --git a/apps/presentationeditor/main/app/view/ShapeSettings.js b/apps/presentationeditor/main/app/view/ShapeSettings.js index 58f192bf8..29335a3dc 100644 --- a/apps/presentationeditor/main/app/view/ShapeSettings.js +++ b/apps/presentationeditor/main/app/view/ShapeSettings.js @@ -1069,7 +1069,7 @@ define([ this._state.GradColor = color; } - // this.chShadow.setValue(!!props.get_shadow()); + this.chShadow.setValue(!!props.asc_getShadow(), true); this._noApply = false; } @@ -1459,7 +1459,7 @@ define([ onCheckShadow: function(field, newValue, oldValue, eOpts) { if (this.api) { var props = new Asc.asc_CShapeProperty(); - props.put_shadow((field.getValue()=='checked') ? new Asc.asc_CShadowProperty() : null); + props.asc_putShadow((field.getValue()=='checked') ? new Asc.asc_CShadowProperty() : null); this.api.ShapeApply(props); } this.fireEvent('editcomplete', this); diff --git a/apps/spreadsheeteditor/main/app/view/ShapeSettings.js b/apps/spreadsheeteditor/main/app/view/ShapeSettings.js index 20182875a..f95f2bb96 100644 --- a/apps/spreadsheeteditor/main/app/view/ShapeSettings.js +++ b/apps/spreadsheeteditor/main/app/view/ShapeSettings.js @@ -1093,7 +1093,7 @@ define([ this._state.GradColor = color; } - // this.chShadow.setValue(!!shapeprops.get_shadow()); + this.chShadow.setValue(!!shapeprops.asc_getShadow(), true); this._noApply = false; } @@ -1545,9 +1545,9 @@ define([ onCheckShadow: function(field, newValue, oldValue, eOpts) { if (this.api) { var props = new Asc.asc_CShapeProperty(); - props.put_shadow((field.getValue()=='checked') ? new Asc.asc_CShadowProperty() : null); - this.asc_setGraphicObjectProps.put_ShapeProperties(props); - this.api.ImgApply(this.imgprops); + props.asc_putShadow((field.getValue()=='checked') ? new Asc.asc_CShadowProperty() : null); + this.imgprops.asc_putShapeProperties(props); + this.api.asc_setGraphicObjectProps(this.imgprops); } Common.NotificationCenter.trigger('edit:complete', this); },