Fix crash when executing macros
This commit is contained in:
Ilya Kirillov
2025-11-27 16:58:50 +03:00
parent 7b8b404dca
commit bf258e5c74

View File

@ -3188,8 +3188,9 @@ ParaDrawing.prototype.SetDrawingPrFromDrawing = function(oAnotherDrawing)
};
ParaDrawing.prototype.OnContentReDraw = function()
{
if (this.Parent && this.Parent.Parent)
this.Parent.Parent.OnContentReDraw(this.PageNum, this.PageNum);
let docContent = this.GetParentDocumentContent();
if (docContent)
docContent.OnContentReDraw(this.PageNum, this.PageNum);
};
ParaDrawing.prototype.getBase64Img = function()
{