Constrain sheet pins to sheet boundary when rotating.

Fixes: lp:1841714
* https://bugs.launchpad.net/kicad/+bug/1841714
This commit is contained in:
Jeff Young 2019-09-03 13:45:04 +01:00
parent efbc802f4d
commit 594fef196f
1 changed files with 2 additions and 1 deletions

View File

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