For bug 75106

This commit is contained in:
Julia.Radzhabova
2025-06-10 15:33:31 +03:00
parent 3427da6498
commit 362de3b4ee
2 changed files with 2 additions and 2 deletions

View File

@ -2362,7 +2362,7 @@ define([], function () {
};
dh.onNewPage = function(item) {
this.api && this.api.asc_AddPage(item.value);
this.api && this.api.asc_AddPage(item.value ? Math.min.apply(null, this.api.getSelectedPages()) : Math.max.apply(null, this.api.getSelectedPages())+1);
Common.NotificationCenter.trigger('edit:complete', this.documentHolder);
};

View File

@ -595,7 +595,7 @@ define([
},
onAddPage: function(before) {
this.api && this.api.asc_AddPage(!!before);
this.api && this.api.asc_AddPage(this.api.getCurrentPage() + (before ? 0 : 1) );
},
/*
mouseenterSmartArt: function (groupName, menu) {