pcbnew: Restore select items filter
This restores the distinction between selecting tracks and selecting items in the expand call. It does not yet fully address lp:1832902
This commit is contained in:
parent
4f4b24a638
commit
77643fe9b6
|
@ -863,7 +863,13 @@ int SELECTION_TOOL::expandConnection( const TOOL_EVENT& aEvent )
|
||||||
// Track items marked BUSY have already been visited
|
// Track items marked BUSY have already been visited
|
||||||
// therefore their connections have already been marked
|
// therefore their connections have already been marked
|
||||||
if( trackItem && !trackItem->GetState( BUSY ) )
|
if( trackItem && !trackItem->GetState( BUSY ) )
|
||||||
|
{
|
||||||
|
if( aEvent.GetCommandId()
|
||||||
|
&& *aEvent.GetCommandId() == PCB_ACTIONS::expandSelectedConnection.GetId() )
|
||||||
selectAllItemsConnectedToItem( *trackItem );
|
selectAllItemsConnectedToItem( *trackItem );
|
||||||
|
else
|
||||||
|
selectAllItemsConnectedToTrack( *trackItem );
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Inform other potentially interested tools
|
// Inform other potentially interested tools
|
||||||
|
|
Loading…
Reference in New Issue