Select starting track items before expanding selection.

Fixes https://gitlab.com/kicad/code/kicad/-/issues/17432
This commit is contained in:
Jeff Young 2024-05-26 15:23:21 +01:00
parent 30b5adde17
commit aeadec40b7
1 changed files with 5 additions and 1 deletions

View File

@ -1476,9 +1476,13 @@ void PCB_SELECTION_TOOL::selectAllConnectedTracks(
for( BOARD_CONNECTED_ITEM* startItem : aStartItems )
{
// Track starting pads
// Register starting pads
if( startItem->Type() == PCB_PAD_T )
startPadSet.insert( static_cast<PAD*>( startItem ) );
// Select any starting track items
if( startItem->IsType( { PCB_TRACE_T, PCB_ARC_T, PCB_VIA_T } ) )
select( startItem );
}
for( BOARD_CONNECTED_ITEM* startItem : aStartItems )