From 345f506f0c119a39860cdf94e4a219d73afbed45 Mon Sep 17 00:00:00 2001 From: Seth Hillbrand Date: Tue, 31 Aug 2021 14:31:56 -0700 Subject: [PATCH] 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. --- eeschema/tools/sch_edit_tool.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/eeschema/tools/sch_edit_tool.cpp b/eeschema/tools/sch_edit_tool.cpp index c9a89c737d..af2b43d3d8 100644 --- a/eeschema/tools/sch_edit_tool.cpp +++ b/eeschema/tools/sch_edit_tool.cpp @@ -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 )