Merge pull request #1627 from ONLYOFFICE/fix/bugfix

[PE] Bug 56003
This commit is contained in:
Julia Radzhabova 2022-03-15 18:17:42 +03:00 committed by GitHub
commit 789266d14a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -188,7 +188,8 @@ define([
},
addNewEffect: function (type, group, groupName, replace, parametr) {
if (this._state.Effect == type && this._state.EffectGroup == group && replace) return;
if (this._state.Effect == type && this._state.EffectGroup == group && replace)
parametr = this._state.EffectOption;
var parameter = this.view.setMenuParameters(type, groupName, parametr);
this.api.asc_AddAnimation(group, type, (parameter != undefined)?parameter:0, replace, !Common.Utils.InternalSettings.get("pe-animation-no-preview"));
},