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:
parent
26104c83ba
commit
7f1c2461b5
|
@ -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:
|
||||||
|
|
Loading…
Reference in New Issue