Skip to content

Commit 47f3cfe

Browse files
committed
fix
1 parent 5d7d965 commit 47f3cfe

File tree

1 file changed

+5
-15
lines changed

1 file changed

+5
-15
lines changed

src/ACadSharp/IO/DWG/DwgStreamReaders/DwgClassesReader.cs

Lines changed: 5 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ public DxfClassCollection Read()
6565

6666
if (this._fileHeader.AcadVersion == ACadVersion.AC1018)
6767
{
68-
//BS : Maxiumum class number
68+
//BS : Maximum class number
6969
this._sreader.ReadBitShort();
7070
//RC: 0x00
7171
this._sreader.ReadRawChar();
@@ -113,20 +113,10 @@ public DxfClassCollection Read()
113113
//BL : Number of objects created of this type in the current DB(DXF 91).
114114
dxfClass.InstanceCount = this._sreader.ReadBitLong();
115115

116-
if (this._fileHeader.AcadVersion == ACadVersion.AC1018)
117-
{
118-
//BS : Dwg Version
119-
dxfClass.DwgVersion = (ACadVersion)this._sreader.ReadBitShort();
120-
//BS : Maintenance release version.
121-
dxfClass.MaintenanceVersion = this._sreader.ReadBitShort();
122-
}
123-
else if (this._fileHeader.AcadVersion > ACadVersion.AC1018)
124-
{
125-
//BS : Dwg Version
126-
dxfClass.DwgVersion = (ACadVersion)this._sreader.ReadBitLong();
127-
//BS : Maintenance release version.
128-
dxfClass.MaintenanceVersion = (short)this._sreader.ReadBitLong();
129-
}
116+
//BS : Dwg Version
117+
dxfClass.DwgVersion = (ACadVersion)this._sreader.ReadBitLong();
118+
//BS : Maintenance release version.
119+
dxfClass.MaintenanceVersion = (short)this._sreader.ReadBitLong();
130120

131121
//BL : Unknown(normally 0L)
132122
this._sreader.ReadBitLong();

0 commit comments

Comments
 (0)