Altium PCB: fixup GetRemainingSubrecordBytes usage.
This commit is contained in:
parent
a8795711a0
commit
c307e284e0
|
@ -625,7 +625,7 @@ AARC6::AARC6( ALTIUM_PARSER& aReader )
|
||||||
width = aReader.ReadKicadUnit();
|
width = aReader.ReadKicadUnit();
|
||||||
subpolyindex = aReader.Read<uint16_t>();
|
subpolyindex = aReader.Read<uint16_t>();
|
||||||
|
|
||||||
if( aReader.GetRemainingSubrecordBytes() >= 12 )
|
if( aReader.GetRemainingSubrecordBytes() >= 10 )
|
||||||
{
|
{
|
||||||
aReader.Skip( 9 );
|
aReader.Skip( 9 );
|
||||||
keepoutrestrictions = aReader.Read<uint8_t>();
|
keepoutrestrictions = aReader.Read<uint8_t>();
|
||||||
|
@ -897,7 +897,7 @@ ATRACK6::ATRACK6( ALTIUM_PARSER& aReader )
|
||||||
width = aReader.ReadKicadUnit();
|
width = aReader.ReadKicadUnit();
|
||||||
subpolyindex = aReader.Read<uint16_t>();
|
subpolyindex = aReader.Read<uint16_t>();
|
||||||
|
|
||||||
if( aReader.GetRemainingSubrecordBytes() >= 13 )
|
if( aReader.GetRemainingSubrecordBytes() >= 11 )
|
||||||
{
|
{
|
||||||
aReader.Skip( 10 );
|
aReader.Skip( 10 );
|
||||||
keepoutrestrictions = aReader.Read<uint8_t>();
|
keepoutrestrictions = aReader.Read<uint8_t>();
|
||||||
|
|
Loading…
Reference in New Issue