diff --git a/src/ACadSharp/ACadSharp.csproj b/src/ACadSharp/ACadSharp.csproj index 734e7653..851336d5 100644 --- a/src/ACadSharp/ACadSharp.csproj +++ b/src/ACadSharp/ACadSharp.csproj @@ -17,7 +17,7 @@ true README.md - 3.5.4 + 3.5.5 ../nupkg True ../ACadSharp.snk diff --git a/src/ACadSharp/IO/DXF/DxfStreamReader/DxfObjectsSectionReader.cs b/src/ACadSharp/IO/DXF/DxfStreamReader/DxfObjectsSectionReader.cs index 5e591212..765d86a0 100644 --- a/src/ACadSharp/IO/DXF/DxfStreamReader/DxfObjectsSectionReader.cs +++ b/src/ACadSharp/IO/DXF/DxfStreamReader/DxfObjectsSectionReader.cs @@ -1754,13 +1754,14 @@ private bool readSpatialFilter(CadTemplate template, DxfMap map) return true; case 20: var pt = filter.BoundaryPoints.LastOrDefault(); - filter.BoundaryPoints.Add(new CSMath.XY(pt.X, this._reader.ValueAsDouble)); + filter.BoundaryPoints[filter.BoundaryPoints.Count - 1] = new CSMath.XY(pt.X, this._reader.ValueAsDouble); return true; case 40: if (filter.ClipFrontPlane && !tmp.HasFrontPlane) { filter.FrontDistance = this._reader.ValueAsDouble; tmp.HasFrontPlane = true; + return true; } double[] array = new double[16]