Unrotate/unflip board footprint to match library copy.

Fixes https://gitlab.com/kicad/code/kicad/issues/14276
This commit is contained in:
Jeff Young 2023-03-13 22:35:45 +00:00
parent a0adb59437
commit 1058d36315
1 changed files with 6 additions and 0 deletions

View File

@ -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 );