Altium import

- Handle intermediate Altium version with some fields but not others
- Ensure that we are properly moving text that is not a box and not a
  field

(cherry picked from commit 9aba808366)
This commit is contained in:
Seth Hillbrand 2024-06-18 21:35:41 -07:00
parent b241e09914
commit 1308fd7c4a
2 changed files with 4 additions and 1 deletions

View File

@ -932,7 +932,10 @@ AVIA6::AVIA6( ALTIUM_BINARY_PARSER& aReader )
{
diameter_by_layer[ii] = aReader.ReadKicadUnit();
}
}
if( subrecord1 > 209 )
{
aReader.Skip( 38 );
soldermask_expansion_linked = aReader.Read<uint8_t>() & 0x01;
soldermask_expansion_back = aReader.ReadKicadUnit();

View File

@ -4130,7 +4130,7 @@ void ALTIUM_PCB::ConvertTexts6ToFootprintItemOnLayer( FOOTPRINT* aFootprint, con
}
else
{
field->SetPosition( aElem.position );
text->SetTextPos( aElem.position );
}
ConvertTexts6ToEdaTextSettings( aElem, text );