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
This commit is contained in:
Seth Hillbrand 2024-06-18 21:35:41 -07:00
parent bf68b11ff9
commit 9aba808366
2 changed files with 4 additions and 1 deletions

View File

@ -933,7 +933,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

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