haplokuon / netDxf

.net dxf Reader-Writer
MIT License
981 stars 400 forks source link

Fixed type issue for AltUnitsEnabled #355

Closed chr-schubert closed 2 years ago

chr-schubert commented 2 years ago

It is cast to bool in DxfReader.cs:5927 but DxfWriter expected a short. Since DimensionStyleOverride.cs:298 clearly expects a bool, changed DxfWriter to accept a bool as well. Otherwise a System.InvalidCastException will be thrown.

haplokuon commented 2 years ago

Only dimension style overrides are affected.