From 594fef196f66f5811a5db7a2ef0758f0a711c35f Mon Sep 17 00:00:00 2001 From: Jeff Young Date: Tue, 3 Sep 2019 13:45:04 +0100 Subject: [PATCH] Constrain sheet pins to sheet boundary when rotating. Fixes: lp:1841714 * https://bugs.launchpad.net/kicad/+bug/1841714 --- eeschema/sch_sheet_pin.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/eeschema/sch_sheet_pin.cpp b/eeschema/sch_sheet_pin.cpp index 4fd476210c..f1a9aed9bb 100644 --- a/eeschema/sch_sheet_pin.cpp +++ b/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 ); }