From bb10b9124fd7c0d2251e188ff712c6177f20a808 Mon Sep 17 00:00:00 2001 From: DomCR Date: Sat, 7 Dec 2024 10:42:14 +0100 Subject: [PATCH] clone n box --- src/ACadSharp/Entities/Insert.cs | 2 +- src/ACadSharp/Entities/TableEntity.cs | 12 ++++++++++++ 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/src/ACadSharp/Entities/Insert.cs b/src/ACadSharp/Entities/Insert.cs index 441e9c4f..c08630e2 100644 --- a/src/ACadSharp/Entities/Insert.cs +++ b/src/ACadSharp/Entities/Insert.cs @@ -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(clone); foreach (var att in this.Attributes) diff --git a/src/ACadSharp/Entities/TableEntity.cs b/src/ACadSharp/Entities/TableEntity.cs index 4d1ce6f7..5b624c37 100644 --- a/src/ACadSharp/Entities/TableEntity.cs +++ b/src/ACadSharp/Entities/TableEntity.cs @@ -102,5 +102,17 @@ public Cell GetCell(int row, int column) { return this.Rows[row].Cells[column]; } + + /// + public override BoundingBox GetBoundingBox() + { + return BoundingBox.Null; + } + + /// + public override CadObject Clone() + { + return base.Clone(); + } } }