From 1f2f4cdcc551835500c52fef9ebd141fa0c43f1b Mon Sep 17 00:00:00 2001 From: Julia Radzhabova Date: Tue, 24 May 2016 12:07:44 +0300 Subject: [PATCH] [PE] Bug 32442 --- .../main/app/view/ImageSettingsAdvanced.js | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/apps/presentationeditor/main/app/view/ImageSettingsAdvanced.js b/apps/presentationeditor/main/app/view/ImageSettingsAdvanced.js index 9ea4a76cad..48d9cfcc5c 100644 --- a/apps/presentationeditor/main/app/view/ImageSettingsAdvanced.js +++ b/apps/presentationeditor/main/app/view/ImageSettingsAdvanced.js @@ -199,10 +199,8 @@ define([ 'text!presentationeditor/main/app/template/ImageSettingsAdvanced.tem this.btnOriginalSize.setDisabled(props.get_ImageUrl()===null || props.get_ImageUrl()===undefined); - var value = Common.localStorage.getItem("pe-settings-imageratio"); - if (value===null || parseInt(value) == 1) { - this.btnRatio.toggle(true); - } + var value = props.asc_getLockAspect(); + this.btnRatio.toggle(value); if (props.get_Position()) { var Position = {X: props.get_Position().get_X(), Y: props.get_Position().get_Y()}; @@ -216,13 +214,12 @@ define([ 'text!presentationeditor/main/app/template/ImageSettingsAdvanced.tem }, getSettings: function() { - Common.localStorage.setItem("pe-settings-imageratio", (this.btnRatio.pressed) ? 1 : 0); - var properties = new Asc.asc_CImgProperty(); if (this.spnHeight.getValue()!=='') properties.put_Height(Common.Utils.Metric.fnRecalcToMM(this.spnHeight.getNumberValue())); if (this.spnWidth.getValue()!=='') properties.put_Width(Common.Utils.Metric.fnRecalcToMM(this.spnWidth.getNumberValue())); + properties.asc_putLockAspect(this.btnRatio.pressed); var Position = new Asc.CPosition(); if (this.spnX.getValue() !== '')