We don't need to flip Y of fields anymore.

This commit is contained in:
Jeff Young 2024-05-03 13:02:03 +01:00
parent ce1404df79
commit 3781682a89
1 changed files with 4 additions and 4 deletions

View File

@ -1654,15 +1654,13 @@ void SYMBOL_EDIT_FRAME::LoadSymbolFromSchematic( SCH_SYMBOL* aSymbol )
// The inverse transform is mirroring before, rotate after
switch( mirror )
{
default:; break;
case SYM_MIRROR_X: pos.y = -pos.y; break;
case SYM_MIRROR_Y: pos.x = -pos.x; break;
default: break;
}
switch( orientation )
{
default:
case SYM_ORIENT_0: break;
case SYM_ORIENT_90:
std::swap( pos.x, pos.y );
pos.x = - pos.x;
@ -1675,9 +1673,11 @@ void SYMBOL_EDIT_FRAME::LoadSymbolFromSchematic( SCH_SYMBOL* aSymbol )
pos.x = - pos.x;
pos.y = - pos.y;
break;
default:
break;
}
libField.SetPosition( VECTOR2I( pos.x, -pos.y ) );
libField.SetPosition( pos );
fullSetOfFields.emplace_back( std::move( libField ) );
}