Skip to content

Commit

Permalink
fix crash
Browse files Browse the repository at this point in the history
  • Loading branch information
SergeyLuzyanin committed Jun 26, 2024
1 parent 8607f7d commit 4442015
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions word/apiBuilder.js
Original file line number Diff line number Diff line change
Expand Up @@ -10563,7 +10563,7 @@
/**
* Selects the current table.
* @memberof ApiTable
* @typeofeditors ["CDE", "CPE"]
* @typeofeditors ["CDE"]
* @returns {boolean}
*/
ApiTable.prototype.Select = function()
Expand Down Expand Up @@ -14629,7 +14629,10 @@
*/
ApiDrawing.prototype.Copy = function()
{
return new this.constructor(this.Drawing.copy());
let oParaDrawing = this.getParaDrawing();
if(!oParaDrawing) return null;
let oCopyParaDrawing = oParaDrawing.copy();
return new this.constructor(oCopyParaDrawing.GraphicObj);
};
/**
* Wraps the graphic object with a rich text content control.
Expand Down

0 comments on commit 4442015

Please sign in to comment.