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:
parent
2097411550
commit
11ec7d4651
|
@ -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() );
|
||||
|
||||
|
|
Loading…
Reference in New Issue