BOARD::Move(): o not move twice PCB_SHAPES in footprints. Altium importer:

fix incorrect position of imported PCB_TEXTs in footprints.
This commit is contained in:
jean-pierre charras 2023-04-14 10:42:02 +02:00
parent 0eefde6046
commit b2bf3229e6
2 changed files with 4 additions and 3 deletions

View File

@ -412,7 +412,8 @@ void BOARD::Move( const VECTOR2I& aMoveVector ) // overload
// aMoveVector was snapshotted, don't need "data".
// Only move the top level group
if( brdItem->GetParentGroup() == nullptr )
if( brdItem->GetParentGroup() == nullptr
&& brdItem->GetParentFootprint() == nullptr )
brdItem->Move( aMoveVector );
return INSPECT_RESULT::CONTINUE;

View File

@ -3107,9 +3107,9 @@ void ALTIUM_PCB::ConvertTexts6ToFootprintItemOnLayer( FOOTPRINT* aFootprint, con
else
fpText->SetText( aElem.text );
fpText->SetKeepUpright( false );
fpText->SetKeepUpright( true );
fpText->SetLayer( aLayer );
fpText->SetFPRelativePosition( aElem.position );
fpText->SetPosition( aElem.position );
fpText->SetTextAngle( EDA_ANGLE( aElem.rotation, DEGREES_T ) );
ConvertTexts6ToEdaTextSettings( aElem, fpText );