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:
parent
0eefde6046
commit
b2bf3229e6
|
@ -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;
|
||||
|
|
|
@ -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 );
|
||||
|
|
Loading…
Reference in New Issue