Skip to content

Commit

Permalink
clone n box
Browse files Browse the repository at this point in the history
  • Loading branch information
DomCR committed Dec 7, 2024
1 parent 6da9c50 commit bb10b91
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/ACadSharp/Entities/Insert.cs
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ public override CadObject Clone()
{
Insert clone = (Insert)base.Clone();

clone.Block = (BlockRecord)this.Block.Clone();
clone.Block = (BlockRecord)this.Block?.Clone();

clone.Attributes = new SeqendCollection<AttributeEntity>(clone);
foreach (var att in this.Attributes)
Expand Down
12 changes: 12 additions & 0 deletions src/ACadSharp/Entities/TableEntity.cs
Original file line number Diff line number Diff line change
Expand Up @@ -102,5 +102,17 @@ public Cell GetCell(int row, int column)
{
return this.Rows[row].Cells[column];
}

/// <inheritdoc/>
public override BoundingBox GetBoundingBox()
{
return BoundingBox.Null;
}

/// <inheritdoc/>
public override CadObject Clone()
{
return base.Clone();
}
}
}

0 comments on commit bb10b91

Please sign in to comment.