Skip to content

Commit

Permalink
dxfwriter fix
Browse files Browse the repository at this point in the history
  • Loading branch information
DomCR committed Sep 15, 2023
1 parent bee777e commit 6292481
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions ACadSharp/IO/DXF/DxfStreamWriter/DxfSectionWriterBase.cs
Original file line number Diff line number Diff line change
Expand Up @@ -148,9 +148,9 @@ protected void writeCollection(IEnumerable arr, DxfCode[] codes = null)
}
}

if (arr is ISeqendCollection colleciton)
if (arr is ISeqendCollection collection && collection.Seqend != null)
{
this.writeMappedObject(colleciton.Seqend);
this.writeMappedObject(collection.Seqend);
}
}

Expand Down Expand Up @@ -239,12 +239,12 @@ private void writeSegment(LineType.Segment segment)
return;

this._writer.Write(75, segment.ShapeNumber);

if (segment.Style != null)
{
this._writer.Write(340, segment.Style.Handle);
}

this._writer.Write(46, segment.Scale);
this._writer.Write(50, segment.Rotation);
this._writer.Write(44, segment.Offset.X);
Expand Down

0 comments on commit 6292481

Please sign in to comment.