Ignore STARTPOINT/ENDPOINT in multiple item rot

Rotating multiple items does not allow for individual end points to be
selected.  This can happen when we narrowSelection by hovering on end
points.
This commit is contained in:
Seth Hillbrand 2021-08-31 14:31:56 -07:00
parent 641a6902b7
commit 345f506f0c
1 changed files with 4 additions and 2 deletions

View File

@ -577,10 +577,12 @@ int SCH_EDIT_TOOL::Rotate( const TOOL_EVENT& aEvent )
{
SCH_LINE* line = (SCH_LINE*) item;
if( item->HasFlag( STARTPOINT ) )
// If we are rotating more than one item, we do not have start/end
// points separately selected
if( item->HasFlag( STARTPOINT ) || principalItemCount > 1 )
line->RotateStart( rotPoint );
if( item->HasFlag( ENDPOINT ) )
if( item->HasFlag( ENDPOINT ) || principalItemCount > 1 )
line->RotateEnd( rotPoint );
}
else if( item->Type() == SCH_SHEET_PIN_T )