Invert the Y axis of SCH_PIN coords when hit-testing.

Fixes: lp:1827849
* https://bugs.launchpad.net/kicad/+bug/1827849
This commit is contained in:
Jeff Young 2019-05-07 10:38:11 +01:00
parent 2097411550
commit 11ec7d4651
1 changed files with 1 additions and 0 deletions

View File

@ -113,6 +113,7 @@ const EDA_RECT SCH_PIN::GetBoundingBox() const
TRANSFORM t = GetParentComponent()->GetTransform();
EDA_RECT r = m_libPin->GetBoundingBox();
t.y2 = -t.y2;
r = t.TransformCoordinate( r );
r.Offset( GetParentComponent()->GetPosition() );