Properly count multiple Altium version settings

There is a fair amount of gradation in different Altium products

Fixes https://gitlab.com/kicad/code/kicad/-/issues/18276
This commit is contained in:
Seth Hillbrand 2024-06-25 10:18:09 -07:00
parent 3725ae781d
commit 6aaaaad37f
1 changed files with 4 additions and 1 deletions

View File

@ -935,12 +935,15 @@ AVIA6::AVIA6( ALTIUM_BINARY_PARSER& aReader )
} }
} }
if( subrecord1 > 209 ) if( subrecord1 >= 246 )
{ {
aReader.Skip( 38 ); aReader.Skip( 38 );
soldermask_expansion_linked = aReader.Read<uint8_t>() & 0x01; soldermask_expansion_linked = aReader.Read<uint8_t>() & 0x01;
soldermask_expansion_back = aReader.ReadKicadUnit(); soldermask_expansion_back = aReader.ReadKicadUnit();
}
if( subrecord1 >= 307 )
{
aReader.Skip( 45 ); aReader.Skip( 45 );
pos_tolerance = aReader.ReadKicadUnit(); pos_tolerance = aReader.ReadKicadUnit();