ixmilia / dxf

MIT License
221 stars 67 forks source link

IEnumerable<DxfEntity> AsSimpleEntities() doesn't take care of the Layer's name of resulting entities. #175

Closed SerjDrob closed 2 years ago

SerjDrob commented 2 years ago

For example after following statement:

var temp = Document.Entities.OfType().First().AsSimpleEntities();

All resulting entities of the temp will have property "Layer" which value is always "0" despite on Layer's value of the initial DxfLwPolyline object.

brettfo commented 2 years ago

Thank you for finding and filing the issue. I've fixed the bug in commit 1e2f82e50d08eccf46b1fed2da545eb27fb4f2da which I just pushed to main.