Skip to content

Commit

Permalink
[pdf] Fix update interface
Browse files Browse the repository at this point in the history
  • Loading branch information
KhromovNikita authored and KirillovIlya committed Jan 29, 2025
1 parent ffa331f commit 3d057c1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pdf/src/document.js
Original file line number Diff line number Diff line change
Expand Up @@ -3662,6 +3662,9 @@ var CPresentation = CPresentation || function(){};
// Work with interface
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
CPDFDoc.prototype.UpdateInterface = function() {
this.UpdateUndoRedo();
Asc.editor.CheckChangedDocument();

if (!this.Viewer.canInteract()) {
return;
}
Expand Down Expand Up @@ -3717,7 +3720,6 @@ var CPresentation = CPresentation || function(){};
let oTargetDocContent = oController.getTargetDocContent(undefined, true);
let oTargetTextObject = AscFormat.getTargetTextObject(oController);

this.UpdateUndoRedo();
this.UpdateCopyCutState();
this.UpdateParagraphProps();
this.UpdateTextProps();
Expand All @@ -3726,8 +3728,6 @@ var CPresentation = CPresentation || function(){};
oTargetDocContent && oTargetDocContent.Document_UpdateInterfaceState();
}
this.Api.sync_EndCatchSelectedElements();

Asc.editor.CheckChangedDocument();
};
CPDFDoc.prototype.UpdateInterfaceTracks = function() {
this.UpdateCommentPos();
Expand Down

0 comments on commit 3d057c1

Please sign in to comment.