From 70d00689ca3d9016746659d0bd04d535ac6ca26a Mon Sep 17 00:00:00 2001 From: Seth Hillbrand Date: Sat, 29 Jan 2022 17:36:01 -0800 Subject: [PATCH] Fully select a line for transformation When not trying to select points, we need to ensure that the full line is selected for transformation Fixes https://gitlab.com/kicad/code/kicad/issues/10566 --- eeschema/tools/ee_selection_tool.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/eeschema/tools/ee_selection_tool.cpp b/eeschema/tools/ee_selection_tool.cpp index 8c89779676..7702812434 100644 --- a/eeschema/tools/ee_selection_tool.cpp +++ b/eeschema/tools/ee_selection_tool.cpp @@ -853,6 +853,10 @@ void EE_SELECTION_TOOL::narrowSelection( EE_COLLECTOR& collector, const VECTOR2I else line->SetFlags( STARTPOINT | ENDPOINT ); } + else if( collector[i]->Type() == SCH_LINE_T ) + { + static_cast( collector[i] )->SetFlags( STARTPOINT | ENDPOINT ); + } } // Apply some ugly heuristics to avoid disambiguation menus whenever possible