Fixes inverted Y position in pin table.

Fixes https://gitlab.com/kicad/code/kicad/issues/11988


(cherry picked from commit 3389e456b1)
This commit is contained in:
passionateengineer 2022-07-20 15:20:07 +02:00 committed by Roberto Fernandez Bautista
parent 26104c83ba
commit 7f1c2461b5
1 changed files with 2 additions and 2 deletions

View File

@ -132,7 +132,7 @@ public:
val = StringFromValue( aUserUnits, pin->GetPosition().x, true ); val = StringFromValue( aUserUnits, pin->GetPosition().x, true );
break; break;
case COL_POSY: case COL_POSY:
val = StringFromValue( aUserUnits, pin->GetPosition().y, true ); val = StringFromValue( aUserUnits, -pin->GetPosition().y, true );
break; break;
case COL_VISIBLE: case COL_VISIBLE:
val = StringFromBool( pin->IsVisible() ); val = StringFromBool( pin->IsVisible() );
@ -216,7 +216,7 @@ public:
case COL_POSY: case COL_POSY:
pin->SetPosition( wxPoint( pin->GetPosition().x, pin->SetPosition( wxPoint( pin->GetPosition().x,
ValueFromString( m_frame->GetUserUnits(), aValue ) ) ); -ValueFromString( m_frame->GetUserUnits(), aValue ) ) );
break; break;
case COL_VISIBLE: case COL_VISIBLE: