File tree Expand file tree Collapse file tree 1 file changed +5
-15
lines changed
src/ACadSharp/IO/DWG/DwgStreamReaders Expand file tree Collapse file tree 1 file changed +5
-15
lines changed Original file line number Diff line number Diff line change @@ -65,7 +65,7 @@ public DxfClassCollection Read()
65
65
66
66
if ( this . _fileHeader . AcadVersion == ACadVersion . AC1018 )
67
67
{
68
- //BS : Maxiumum class number
68
+ //BS : Maximum class number
69
69
this . _sreader . ReadBitShort ( ) ;
70
70
//RC: 0x00
71
71
this . _sreader . ReadRawChar ( ) ;
@@ -113,20 +113,10 @@ public DxfClassCollection Read()
113
113
//BL : Number of objects created of this type in the current DB(DXF 91).
114
114
dxfClass . InstanceCount = this . _sreader . ReadBitLong ( ) ;
115
115
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 ( ) ;
130
120
131
121
//BL : Unknown(normally 0L)
132
122
this . _sreader . ReadBitLong ( ) ;
You can’t perform that action at this time.
0 commit comments