mirror of
https://github.com/ONLYOFFICE/sdkjs.git
synced 2026-04-07 14:09:12 +08:00
[pdf] Fix bug #77735
This commit is contained in:
committed by
Ilya Kirillov
parent
3647ccfc02
commit
84331a984e
@ -514,8 +514,9 @@
|
||||
return this._origPage;
|
||||
};
|
||||
CAnnotationBase.prototype.SetWasChanged = function(isChanged, viewSync) {
|
||||
let oViewer = Asc.editor.getDocumentRenderer();
|
||||
let canChange = !oViewer.IsOpenAnnotsInProgress && AscCommon.History.CanAddChanges();
|
||||
let oDoc = Asc.editor.getPDFDoc();
|
||||
let oViewer = Asc.editor.getDocumentRenderer();
|
||||
let canChange = !oViewer.IsOpenAnnotsInProgress && oDoc.LocalHistory !== AscCommon.History && AscCommon.History.CanAddChanges();
|
||||
|
||||
let prev = this._wasChanged;
|
||||
let changed = prev !== isChanged && canChange;
|
||||
|
||||
Reference in New Issue
Block a user