Skip to content

Commit

Permalink
Update Hatch.cs
Browse files Browse the repository at this point in the history
Direct cast with IEnumerable.Cast lead to Invalid cast exception
  • Loading branch information
KisliPlug committed Sep 11, 2024
1 parent af4286f commit bc43a19
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ACadSharp/Entities/Hatch.cs
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ public Hatch() : base() { }
/// <inheritdoc/>
public override BoundingBox GetBoundingBox()
{
return BoundingBox.FromPoints(this.SeedPoints.Cast<XYZ>());
return BoundingBox.FromPoints(this.SeedPoints.Select(x=>(XYZ)x));
}

/// <inheritdoc/>
Expand Down

0 comments on commit bc43a19

Please sign in to comment.