Invert Y axis for pin root bounding box.

Fixes https://gitlab.com/kicad/code/kicad/issues/9465
This commit is contained in:
Jeff Young 2021-10-27 01:43:38 +01:00
parent 3d2ffc12c1
commit e14864b35c
1 changed files with 4 additions and 4 deletions

View File

@ -183,10 +183,10 @@ wxPoint LIB_PIN::GetPinRoot() const
switch( m_orientation )
{
default:
case PIN_RIGHT: return wxPoint( m_position.x + m_length, m_position.y );
case PIN_LEFT: return wxPoint( m_position.x - m_length, m_position.y );
case PIN_UP: return wxPoint( m_position.x, m_position.y - m_length );
case PIN_DOWN: return wxPoint( m_position.x, m_position.y + m_length );
case PIN_RIGHT: return wxPoint( m_position.x + m_length, -( m_position.y ) );
case PIN_LEFT: return wxPoint( m_position.x - m_length, -( m_position.y ) );
case PIN_UP: return wxPoint( m_position.x, -( m_position.y - m_length ) );
case PIN_DOWN: return wxPoint( m_position.x, -( m_position.y + m_length ) );
}
}