From 3e7bc7ac1576aebba5b2c353885bc81ba5907596 Mon Sep 17 00:00:00 2001 From: Julia Radzhabova Date: Wed, 7 Sep 2022 17:00:20 +0300 Subject: [PATCH] [PE] Fix Bug 58916 --- .../main/app/controller/RightMenu.js | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/apps/presentationeditor/main/app/controller/RightMenu.js b/apps/presentationeditor/main/app/controller/RightMenu.js index d082dd879..f1f3a69f7 100644 --- a/apps/presentationeditor/main/app/controller/RightMenu.js +++ b/apps/presentationeditor/main/app/controller/RightMenu.js @@ -150,10 +150,14 @@ define([ this._settings[settingsType].lockedHeader = !!value.get_LockHeader && value.get_LockHeader(); } else { this._settings[settingsType].locked = value.get_Locked(); - if (settingsType == Common.Utils.documentSettingsType.Shape && value.asc_getTextArtProperties()) { - this._settings[Common.Utils.documentSettingsType.TextArt].props = value; - this._settings[Common.Utils.documentSettingsType.TextArt].hidden = 0; - this._settings[Common.Utils.documentSettingsType.TextArt].locked = value.get_Locked(); + if (settingsType == Common.Utils.documentSettingsType.Shape) { + if (value.asc_getIsMotionPath()) { + this._settings[settingsType].hidden = 1; + } else if (value.asc_getTextArtProperties()) { + this._settings[Common.Utils.documentSettingsType.TextArt].props = value; + this._settings[Common.Utils.documentSettingsType.TextArt].hidden = 0; + this._settings[Common.Utils.documentSettingsType.TextArt].locked = value.get_Locked(); + } } } }