From 4735ba922de5b07e38f7819b92be8c252796af9b Mon Sep 17 00:00:00 2001 From: Julia Radzhabova Date: Fri, 9 Sep 2022 14:56:29 +0300 Subject: [PATCH] [DE] Fix Bug 58964 --- apps/documenteditor/main/app/controller/Toolbar.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/apps/documenteditor/main/app/controller/Toolbar.js b/apps/documenteditor/main/app/controller/Toolbar.js index 6be815ed4..6812ef505 100644 --- a/apps/documenteditor/main/app/controller/Toolbar.js +++ b/apps/documenteditor/main/app/controller/Toolbar.js @@ -740,7 +740,8 @@ define([ spectype = control_props ? control_props.get_SpecificType() : Asc.c_oAscContentControlSpecificType.None; this.toolbar.lockToolbar(Common.enumLock.inSpecificForm, spectype==Asc.c_oAscContentControlSpecificType.CheckBox || spectype==Asc.c_oAscContentControlSpecificType.Picture || spectype==Asc.c_oAscContentControlSpecificType.ComboBox || spectype==Asc.c_oAscContentControlSpecificType.DropDownList || spectype==Asc.c_oAscContentControlSpecificType.DateTime, {array: this.btnsComment}); - } + } else + this.toolbar.lockToolbar(Common.enumLock.inSpecificForm, false, {array: this.btnsComment}); this.toolbar.lockToolbar(Common.enumLock.paragraphLock, paragraph_locked, {array: this.btnsComment}); this.toolbar.lockToolbar(Common.enumLock.headerLock, header_locked, {array: this.btnsComment}); this.toolbar.lockToolbar(Common.enumLock.richEditLock, rich_edit_lock, {array: this.btnsComment}); @@ -907,7 +908,8 @@ define([ this.toolbar.lockToolbar(Common.enumLock.inSpecificForm, spectype==Asc.c_oAscContentControlSpecificType.CheckBox || spectype==Asc.c_oAscContentControlSpecificType.Picture || spectype==Asc.c_oAscContentControlSpecificType.ComboBox || spectype==Asc.c_oAscContentControlSpecificType.DropDownList || spectype==Asc.c_oAscContentControlSpecificType.DateTime, {array: this.btnsComment}); - } + } else + this.toolbar.lockToolbar(Common.enumLock.inSpecificForm, false, {array: this.btnsComment}); } if (frame_pr) { this._state.suppress_num = !!frame_pr.get_SuppressLineNumbers();