From d9d367810ffe0c666e25fff8b9fb555ff50f018c Mon Sep 17 00:00:00 2001 From: Julia Radzhabova Date: Wed, 1 Dec 2021 23:22:38 +0300 Subject: [PATCH] [DE] Fix Bug 54218 --- apps/documenteditor/main/app/view/ImageSettingsAdvanced.js | 3 ++- apps/documenteditor/main/app/view/ShapeSettings.js | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/apps/documenteditor/main/app/view/ImageSettingsAdvanced.js b/apps/documenteditor/main/app/view/ImageSettingsAdvanced.js index c9a448608..0401251f2 100644 --- a/apps/documenteditor/main/app/view/ImageSettingsAdvanced.js +++ b/apps/documenteditor/main/app/view/ImageSettingsAdvanced.js @@ -1390,7 +1390,8 @@ define([ 'text!documenteditor/main/app/template/ImageSettingsAdvanced.templat if (control_props) { var spectype = control_props.get_SpecificType(); fixed_size = (spectype==Asc.c_oAscContentControlSpecificType.CheckBox || spectype==Asc.c_oAscContentControlSpecificType.ComboBox || - spectype==Asc.c_oAscContentControlSpecificType.DropDownList || spectype==Asc.c_oAscContentControlSpecificType.None) && + spectype==Asc.c_oAscContentControlSpecificType.DropDownList || spectype==Asc.c_oAscContentControlSpecificType.None || + spectype==Asc.c_oAscContentControlSpecificType.Picture) && control_props.get_FormPr() && control_props.get_FormPr().get_Fixed(); } diff --git a/apps/documenteditor/main/app/view/ShapeSettings.js b/apps/documenteditor/main/app/view/ShapeSettings.js index 0c75fddaa..09748d71a 100644 --- a/apps/documenteditor/main/app/view/ShapeSettings.js +++ b/apps/documenteditor/main/app/view/ShapeSettings.js @@ -798,7 +798,8 @@ define([ if (control_props) { var spectype = control_props.get_SpecificType(); control_props = (spectype==Asc.c_oAscContentControlSpecificType.CheckBox || spectype==Asc.c_oAscContentControlSpecificType.ComboBox || - spectype==Asc.c_oAscContentControlSpecificType.DropDownList || spectype==Asc.c_oAscContentControlSpecificType.None) && + spectype==Asc.c_oAscContentControlSpecificType.DropDownList || spectype==Asc.c_oAscContentControlSpecificType.None || + spectype==Asc.c_oAscContentControlSpecificType.Picture) && control_props.get_FormPr() && control_props.get_FormPr().get_Fixed(); } else control_props = false;