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
This commit is contained in:
Seth Hillbrand 2022-01-29 17:36:01 -08:00
parent 26dfc4477f
commit 70d00689ca
1 changed files with 4 additions and 0 deletions

View File

@ -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<SCH_LINE*>( collector[i] )->SetFlags( STARTPOINT | ENDPOINT );
}
}
// Apply some ugly heuristics to avoid disambiguation menus whenever possible