Constrain sheet pins to sheet boundary when rotating.
Fixes: lp:1841714 * https://bugs.launchpad.net/kicad/+bug/1841714
This commit is contained in:
parent
efbc802f4d
commit
594fef196f
|
@ -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…
Reference in New Issue