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

(cherry picked from commit 70d00689ca)
This commit is contained in:
Seth Hillbrand 2022-01-29 17:36:01 -08:00
parent b36e31c49f
commit 38706fdd95
1 changed files with 4 additions and 0 deletions

View File

@ -846,6 +846,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