Skip to content

Commit

Permalink
[pdf] Check empty histpry point after action
Browse files Browse the repository at this point in the history
  • Loading branch information
KhromovNikita committed Feb 14, 2025
1 parent 3cd7ce9 commit f8deb35
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions pdf/src/GraphicObjects.js
Original file line number Diff line number Diff line change
Expand Up @@ -1009,6 +1009,18 @@
}
return false;
};
CGraphicObjects.prototype.checkSelectedObjectsAndCallback = function(callback, args, bNoSendProps, nHistoryPointType, aAdditionaObjects, bNoCheckLock) {
let oDoc = this.document;
let check_type = AscCommon.changestype_Drawing_Props;

if(bNoCheckLock || oDoc.Document_Is_SelectionLocked(check_type, null, false, false) === false) {
let nPointType = AscFormat.isRealNumber(nHistoryPointType) ? nHistoryPointType : AscDFH.historydescription_CommonControllerCheckSelected;
oDoc.StartAction(nPointType);
callback.apply(this, args);
oDoc.Recalculate();
oDoc.FinalizeAction(true);
}
};
CGraphicObjects.prototype.selectObject = function (object, pageIndex) {
let oDoc = this.document;
object.select(this, pageIndex);
Expand Down

0 comments on commit f8deb35

Please sign in to comment.