From a5f27a927597fad14cc7d5f3aeb7ab2e33be62b9 Mon Sep 17 00:00:00 2001
From: Julia Radzhabova <julia.radzhabova@onlyoffice.com>
Date: Thu, 15 Dec 2022 18:39:17 +0300
Subject: [PATCH] Fix Bug 60179

---
 apps/documenteditor/main/app/view/ShapeSettings.js     | 2 +-
 apps/presentationeditor/main/app/view/ShapeSettings.js | 2 +-
 apps/spreadsheeteditor/main/app/view/ShapeSettings.js  | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/apps/documenteditor/main/app/view/ShapeSettings.js b/apps/documenteditor/main/app/view/ShapeSettings.js
index 85af8379f..caafdc8db 100644
--- a/apps/documenteditor/main/app/view/ShapeSettings.js
+++ b/apps/documenteditor/main/app/view/ShapeSettings.js
@@ -1214,7 +1214,7 @@ define([
                     this._state.GradColor = color;
                 }
 
-                this.chShadow.setDisabled(!!shapeprops.get_FromChart());
+                this.chShadow.setDisabled(!!shapeprops.get_FromChart() || this._locked);
                 this.chShadow.setValue(!!shapeprops.asc_getShadow(), true);
 
                 this._noApply = false;
diff --git a/apps/presentationeditor/main/app/view/ShapeSettings.js b/apps/presentationeditor/main/app/view/ShapeSettings.js
index fde3bdb0a..13b6529bb 100644
--- a/apps/presentationeditor/main/app/view/ShapeSettings.js
+++ b/apps/presentationeditor/main/app/view/ShapeSettings.js
@@ -1145,7 +1145,7 @@ define([
                     this._state.GradColor = color;
                 }
 
-                this.chShadow.setDisabled(!!props.get_FromChart());
+                this.chShadow.setDisabled(!!props.get_FromChart() || this._locked);
                 this.chShadow.setValue(!!props.asc_getShadow(), true);
 
                 this._noApply = false;
diff --git a/apps/spreadsheeteditor/main/app/view/ShapeSettings.js b/apps/spreadsheeteditor/main/app/view/ShapeSettings.js
index fe17489b1..5361fab57 100644
--- a/apps/spreadsheeteditor/main/app/view/ShapeSettings.js
+++ b/apps/spreadsheeteditor/main/app/view/ShapeSettings.js
@@ -1140,7 +1140,7 @@ define([
 
                     this._state.GradColor = color;
                 }
-                this.chShadow.setDisabled(!!shapeprops.get_FromChart());
+                this.chShadow.setDisabled(!!shapeprops.get_FromChart() || this._locked);
                 this.chShadow.setValue(!!shapeprops.asc_getShadow(), true);
 
                 this._noApply = false;