Fix some breakage in Altium parser due to Symbol Editor Y-axis inversion.

This commit is contained in:
Jeff Young 2024-05-03 14:52:50 +01:00
parent e7f4e29dd1
commit 09c5b9df1d
1 changed files with 2 additions and 2 deletions

View File

@ -235,7 +235,7 @@ ASCH_PIN::ASCH_PIN( const std::map<wxString, wxString>& aProps ) :
int xfrac = ALTIUM_PROPS_UTILS::ReadInt( aProps, "LOCATION.X_FRAC", 0 );
int y = ALTIUM_PROPS_UTILS::ReadInt( aProps, "LOCATION.Y", 0 );
int yfrac = ALTIUM_PROPS_UTILS::ReadInt( aProps, "LOCATION.Y_FRAC", 0 );
location = VECTOR2I( Altium2KiCadUnit( x, xfrac ), -Altium2KiCadUnit( y, yfrac ) );
location = VECTOR2I( Altium2KiCadUnit( x, xfrac ), Altium2KiCadUnit( y, yfrac ) );
int p = ALTIUM_PROPS_UTILS::ReadInt( aProps, "PINLENGTH", 0 );
int pfrac = ALTIUM_PROPS_UTILS::ReadInt( aProps, "PINLENGTH_FRAC", 0 );
@ -284,7 +284,7 @@ ASCH_PIN::ASCH_PIN( const std::map<wxString, wxString>& aProps ) :
}
kicadLocation = VECTOR2I( Altium2KiCadUnit( kicadX, kicadXfrac ),
-Altium2KiCadUnit( kicadY, kicadYfrac ) );
Altium2KiCadUnit( kicadY, kicadYfrac ) );
}