diff --git a/pcbnew/altium2kicadpcb_plugin/altium_parser_pcb.cpp b/pcbnew/altium2kicadpcb_plugin/altium_parser_pcb.cpp index ccf20c12b4..5abcd81d3e 100644 --- a/pcbnew/altium2kicadpcb_plugin/altium_parser_pcb.cpp +++ b/pcbnew/altium2kicadpcb_plugin/altium_parser_pcb.cpp @@ -599,9 +599,8 @@ APAD6::APAD6( ALTIUM_PARSER& aReader ) // Subrecord 5 size_t subrecord5 = aReader.ReadAndSetSubrecordLength(); - // TODO: exact minimum length we know? - if( subrecord5 < 120 ) - THROW_IO_ERROR( "Pads6 stream subrecord has length < 120, which is unexpected" ); + if( subrecord5 < 114 ) + THROW_IO_ERROR( "Pads6 stream subrecord has length < 114, which is unexpected" ); layer = static_cast( aReader.Read() ); tolayer = ALTIUM_LAYER::UNKNOWN; @@ -644,7 +643,7 @@ APAD6::APAD6( ALTIUM_PARSER& aReader ) aReader.Skip( 3 ); holerotation = aReader.Read(); - if( subrecord5 == 120 ) + if( subrecord5 >= 120 ) { tolayer = static_cast( aReader.Read() ); aReader.Skip( 2 );