Unrotate/unflip board footprint to match library copy.
Fixes https://gitlab.com/kicad/code/kicad/issues/14276
This commit is contained in:
parent
a0adb59437
commit
1058d36315
|
@ -73,6 +73,12 @@ void FOOTPRINT_DIFF_WIDGET::DisplayDiff( FOOTPRINT* aBoardFootprint,
|
||||||
|
|
||||||
m_boardItemCopy->Move( -m_boardItemCopy->GetPosition() );
|
m_boardItemCopy->Move( -m_boardItemCopy->GetPosition() );
|
||||||
|
|
||||||
|
if( m_boardItemCopy->IsFlipped() )
|
||||||
|
m_boardItemCopy->Flip( {0,0}, false );
|
||||||
|
|
||||||
|
if( m_boardItemCopy->GetOrientation() != ANGLE_0 )
|
||||||
|
m_boardItemCopy->Rotate( {0,0}, -m_boardItemCopy->GetOrientation() );
|
||||||
|
|
||||||
m_libraryItem = aLibFootprint;
|
m_libraryItem = aLibFootprint;
|
||||||
|
|
||||||
DisplayFootprints( m_boardItemCopy, m_libraryItem );
|
DisplayFootprints( m_boardItemCopy, m_libraryItem );
|
||||||
|
|
Loading…
Reference in New Issue