Skip to content
This repository has been archived by the owner on Oct 11, 2023. It is now read-only.

Commit

Permalink
Merge pull request #355 from chr-schubert/fix_AltUnitsEnabled_DxfWriter
Browse files Browse the repository at this point in the history
Fixed type issue for AltUnitsEnabled
  • Loading branch information
haplokuon committed Feb 13, 2022
2 parents 6bbbc8a + c538c1a commit 4d77487
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion netDxf/IO/DxfWriter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3790,7 +3790,7 @@ private void AddDimensionStyleOverridesXData(XDataDictionary xdata, DimensionSty
break;
case DimensionStyleOverrideType.AltUnitsEnabled:
xdataEntry.XDataRecord.Add(new XDataRecord(XDataCode.Int16, (short) 170));
xdataEntry.XDataRecord.Add(new XDataRecord(XDataCode.Int16, (short) styleOverride.Value));
xdataEntry.XDataRecord.Add(new XDataRecord(XDataCode.Int16, (bool) styleOverride.Value ? (short) 0 : (short) 1));
break;
case DimensionStyleOverrideType.AltUnitsLengthUnits:
writeDIMALTU = true;
Expand Down

0 comments on commit 4d77487

Please sign in to comment.