Browse Source

Invert Y axis for pin root bounding box.

Fixes https://gitlab.com/kicad/code/kicad/issues/9465
6.0.7
Jeff Young 4 years ago
parent
commit
e14864b35c
  1. 8
      eeschema/lib_pin.cpp

8
eeschema/lib_pin.cpp

@ -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 ) );
}
}

Loading…
Cancel
Save