Altium PCB: fixup GetRemainingSubrecordBytes usage.

This commit is contained in:
Alex Shvartzkop 2023-11-26 00:30:22 +03:00
parent a8795711a0
commit c307e284e0
1 changed files with 2 additions and 2 deletions

View File

@ -625,7 +625,7 @@ AARC6::AARC6( ALTIUM_PARSER& aReader )
width = aReader.ReadKicadUnit();
subpolyindex = aReader.Read<uint16_t>();
if( aReader.GetRemainingSubrecordBytes() >= 12 )
if( aReader.GetRemainingSubrecordBytes() >= 10 )
{
aReader.Skip( 9 );
keepoutrestrictions = aReader.Read<uint8_t>();
@ -897,7 +897,7 @@ ATRACK6::ATRACK6( ALTIUM_PARSER& aReader )
width = aReader.ReadKicadUnit();
subpolyindex = aReader.Read<uint16_t>();
if( aReader.GetRemainingSubrecordBytes() >= 13 )
if( aReader.GetRemainingSubrecordBytes() >= 11 )
{
aReader.Skip( 10 );
keepoutrestrictions = aReader.Read<uint8_t>();