From 146363ddf9e6ea1706e8d4fa53cad96a5a8a300a Mon Sep 17 00:00:00 2001 From: OVSharova Date: Wed, 19 Jan 2022 19:25:39 +0300 Subject: [PATCH 1/2] Fix bug --- apps/presentationeditor/main/app/controller/Animation.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/presentationeditor/main/app/controller/Animation.js b/apps/presentationeditor/main/app/controller/Animation.js index 4277a2f1f..f7a864d4b 100644 --- a/apps/presentationeditor/main/app/controller/Animation.js +++ b/apps/presentationeditor/main/app/controller/Animation.js @@ -182,7 +182,7 @@ define([ }, addNewEffect: function (type, group, groupName, replace) { - if (this._state.Effect == type) return; + if (this._state.Effect == type && this._state.EffectGroup == group) return; var parameter = this.view.setMenuParameters(type, groupName, undefined); this.api.asc_AddAnimation(group, type, (parameter != undefined)?parameter:0, replace); this._state.EffectGroup = group; From d43ecdfce3a21e0549ed7c1330d15e86420c8116 Mon Sep 17 00:00:00 2001 From: OVSharova Date: Wed, 19 Jan 2022 19:38:23 +0300 Subject: [PATCH 2/2] Fix bug --- apps/presentationeditor/main/app/controller/Animation.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/presentationeditor/main/app/controller/Animation.js b/apps/presentationeditor/main/app/controller/Animation.js index f7a864d4b..5fc9178a3 100644 --- a/apps/presentationeditor/main/app/controller/Animation.js +++ b/apps/presentationeditor/main/app/controller/Animation.js @@ -182,7 +182,7 @@ define([ }, addNewEffect: function (type, group, groupName, replace) { - if (this._state.Effect == type && this._state.EffectGroup == group) return; + if (this._state.Effect == type && this._state.EffectGroup == group && replace) return; var parameter = this.view.setMenuParameters(type, groupName, undefined); this.api.asc_AddAnimation(group, type, (parameter != undefined)?parameter:0, replace); this._state.EffectGroup = group;