From 7f1c2461b52529da6317346ccac5601c15578f44 Mon Sep 17 00:00:00 2001 From: passionateengineer Date: Wed, 20 Jul 2022 15:20:07 +0200 Subject: [PATCH] Fixes inverted Y position in pin table. Fixes https://gitlab.com/kicad/code/kicad/issues/11988 (cherry picked from commit 3389e456b10803f830a13a248b69c747202bb654) --- eeschema/dialogs/dialog_lib_edit_pin_table.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/eeschema/dialogs/dialog_lib_edit_pin_table.cpp b/eeschema/dialogs/dialog_lib_edit_pin_table.cpp index 6b58d0e7da..bdee55f617 100644 --- a/eeschema/dialogs/dialog_lib_edit_pin_table.cpp +++ b/eeschema/dialogs/dialog_lib_edit_pin_table.cpp @@ -132,7 +132,7 @@ public: val = StringFromValue( aUserUnits, pin->GetPosition().x, true ); break; case COL_POSY: - val = StringFromValue( aUserUnits, pin->GetPosition().y, true ); + val = StringFromValue( aUserUnits, -pin->GetPosition().y, true ); break; case COL_VISIBLE: val = StringFromBool( pin->IsVisible() ); @@ -216,7 +216,7 @@ public: case COL_POSY: pin->SetPosition( wxPoint( pin->GetPosition().x, - ValueFromString( m_frame->GetUserUnits(), aValue ) ) ); + -ValueFromString( m_frame->GetUserUnits(), aValue ) ) ); break; case COL_VISIBLE: