Browse Source

Constrain sheet pins to sheet boundary when rotating.

Fixes: lp:1841714
* https://bugs.launchpad.net/kicad/+bug/1841714
pull/15/head
Jeff Young 6 years ago
parent
commit
594fef196f
  1. 3
      eeschema/sch_sheet_pin.cpp

3
eeschema/sch_sheet_pin.cpp

@ -226,7 +226,6 @@ void SCH_SHEET_PIN::Rotate( wxPoint aPosition )
{
wxPoint pt = GetTextPos();
RotatePoint( &pt, aPosition, 900 );
SetTextPos( pt );
switch( m_edge )
{
@ -236,6 +235,8 @@ void SCH_SHEET_PIN::Rotate( wxPoint aPosition )
case SHEET_BOTTOM_SIDE: SetEdge( SHEET_RIGHT_SIDE ); break;
default: break;
}
ConstrainOnEdge( pt );
}

Loading…
Cancel
Save