diff --git a/apps/documenteditor/main/app/view/DocumentHolder.js b/apps/documenteditor/main/app/view/DocumentHolder.js index 97ad0f1bd..d087ec28f 100644 --- a/apps/documenteditor/main/app/view/DocumentHolder.js +++ b/apps/documenteditor/main/app/view/DocumentHolder.js @@ -2378,6 +2378,7 @@ define([ properties.put_Width(originalImageSize.get_ImageWidth()); properties.put_Height(originalImageSize.get_ImageHeight()); properties.put_ResetCrop(true); + properties.put_Rot(0); me.api.ImgApply(properties); me.fireEvent('editcomplete', this); diff --git a/apps/documenteditor/main/app/view/ImageSettings.js b/apps/documenteditor/main/app/view/ImageSettings.js index f48827afc..9a754a41e 100644 --- a/apps/documenteditor/main/app/view/ImageSettings.js +++ b/apps/documenteditor/main/app/view/ImageSettings.js @@ -410,6 +410,7 @@ define([ properties.put_Width(w); properties.put_Height(h); properties.put_ResetCrop(true); + properties.put_Rot(0); this.api.ImgApply(properties); this.fireEvent('editcomplete', this); } diff --git a/apps/documenteditor/main/app/view/ImageSettingsAdvanced.js b/apps/documenteditor/main/app/view/ImageSettingsAdvanced.js index 4637114d2..75278fe85 100644 --- a/apps/documenteditor/main/app/view/ImageSettingsAdvanced.js +++ b/apps/documenteditor/main/app/view/ImageSettingsAdvanced.js @@ -174,6 +174,7 @@ define([ 'text!documenteditor/main/app/template/ImageSettingsAdvanced.templat el: $('#image-advanced-button-original-size') }); this.btnOriginalSize.on('click', _.bind(function(btn, e) { + this.spnAngle.setValue(0); this.spnWidth.setValue(this.sizeOriginal.width, true); this.spnHeight.setValue(this.sizeOriginal.height, true); this._nRatio = this.sizeOriginal.width/this.sizeOriginal.height; @@ -181,6 +182,7 @@ define([ 'text!documenteditor/main/app/template/ImageSettingsAdvanced.templat this._changedProps.put_Height(Common.Utils.Metric.fnRecalcToMM(this.spnHeight.getNumberValue())); this._changedProps.put_Width(Common.Utils.Metric.fnRecalcToMM(this.spnWidth.getNumberValue())); this._changedProps.put_ResetCrop(true); + this._changedProps.put_Rot(0); } }, this)); diff --git a/apps/documenteditor/mobile/src/controller/edit/EditImage.jsx b/apps/documenteditor/mobile/src/controller/edit/EditImage.jsx index 108056b23..ca94da190 100644 --- a/apps/documenteditor/mobile/src/controller/edit/EditImage.jsx +++ b/apps/documenteditor/mobile/src/controller/edit/EditImage.jsx @@ -30,6 +30,7 @@ class EditImageController extends Component { properties.put_Width(imgSize.get_ImageWidth()); properties.put_Height(imgSize.get_ImageHeight()); properties.put_ResetCrop(true); + properties.put_Rot(0); api.ImgApply(properties); } } diff --git a/apps/presentationeditor/main/app/view/DocumentHolder.js b/apps/presentationeditor/main/app/view/DocumentHolder.js index 71a7fc834..9285ce0ee 100644 --- a/apps/presentationeditor/main/app/view/DocumentHolder.js +++ b/apps/presentationeditor/main/app/view/DocumentHolder.js @@ -2887,6 +2887,7 @@ define([ properties.put_Width(originalImageSize.get_ImageWidth()); properties.put_Height(originalImageSize.get_ImageHeight()); properties.put_ResetCrop(true); + properties.put_Rot(0); me.api.ImgApply(properties); } diff --git a/apps/presentationeditor/main/app/view/ImageSettings.js b/apps/presentationeditor/main/app/view/ImageSettings.js index 343e8e852..f5c6bcac8 100644 --- a/apps/presentationeditor/main/app/view/ImageSettings.js +++ b/apps/presentationeditor/main/app/view/ImageSettings.js @@ -300,6 +300,7 @@ define([ properties.put_Width(w); properties.put_Height(h); properties.put_ResetCrop(true); + properties.put_Rot(0); this.api.ImgApply(properties); this.fireEvent('editcomplete', this); } diff --git a/apps/presentationeditor/main/app/view/ImageSettingsAdvanced.js b/apps/presentationeditor/main/app/view/ImageSettingsAdvanced.js index d475e0f7a..54a874037 100644 --- a/apps/presentationeditor/main/app/view/ImageSettingsAdvanced.js +++ b/apps/presentationeditor/main/app/view/ImageSettingsAdvanced.js @@ -133,6 +133,7 @@ define([ 'text!presentationeditor/main/app/template/ImageSettingsAdvanced.tem el: $('#image-advanced-button-original-size') }); this.btnOriginalSize.on('click', _.bind(function(btn, e) { + this.spnAngle.setValue(0); this.spnWidth.setValue(this.sizeOriginal.width, true); this.spnHeight.setValue(this.sizeOriginal.height, true); this._nRatio = this.sizeOriginal.width/this.sizeOriginal.height; diff --git a/apps/presentationeditor/mobile/src/controller/edit/EditImage.jsx b/apps/presentationeditor/mobile/src/controller/edit/EditImage.jsx index eb607e1f6..5c59109c2 100644 --- a/apps/presentationeditor/mobile/src/controller/edit/EditImage.jsx +++ b/apps/presentationeditor/mobile/src/controller/edit/EditImage.jsx @@ -79,6 +79,7 @@ class EditImageController extends Component { properties.put_Width(imgsize.get_ImageWidth()); properties.put_Height(imgsize.get_ImageHeight()); properties.put_ResetCrop(true); + properties.put_Rot(0); api.ImgApply(properties); } diff --git a/apps/spreadsheeteditor/main/app/controller/DocumentHolder.js b/apps/spreadsheeteditor/main/app/controller/DocumentHolder.js index 657726150..7e1ede550 100644 --- a/apps/spreadsheeteditor/main/app/controller/DocumentHolder.js +++ b/apps/spreadsheeteditor/main/app/controller/DocumentHolder.js @@ -3512,6 +3512,7 @@ define([ properties.asc_putWidth(w); properties.asc_putHeight(h); properties.put_ResetCrop(true); + properties.put_Rot(0); this.api.asc_setGraphicObjectProps(properties); Common.NotificationCenter.trigger('edit:complete', this.documentHolder); diff --git a/apps/spreadsheeteditor/main/app/view/ImageSettings.js b/apps/spreadsheeteditor/main/app/view/ImageSettings.js index 86e6c9324..0c342a78b 100644 --- a/apps/spreadsheeteditor/main/app/view/ImageSettings.js +++ b/apps/spreadsheeteditor/main/app/view/ImageSettings.js @@ -428,6 +428,7 @@ define([ properties.asc_putWidth(w); properties.asc_putHeight(h); properties.put_ResetCrop(true); + properties.put_Rot(0); this.api.asc_setGraphicObjectProps(properties); Common.NotificationCenter.trigger('edit:complete', this); } diff --git a/apps/spreadsheeteditor/mobile/src/controller/edit/EditImage.jsx b/apps/spreadsheeteditor/mobile/src/controller/edit/EditImage.jsx index 446dc647d..d882773b1 100644 --- a/apps/spreadsheeteditor/mobile/src/controller/edit/EditImage.jsx +++ b/apps/spreadsheeteditor/mobile/src/controller/edit/EditImage.jsx @@ -51,6 +51,7 @@ class EditImageController extends Component { properties.put_Width(imgsize.get_ImageWidth()); properties.put_Height(imgsize.get_ImageHeight()); properties.put_ResetCrop(true); + properties.put_Rot(0); api.asc_setGraphicObjectProps(properties); }