pcb: grab unconnected needs to ignore same-footprint ratsnets items
This commit is contained in:
parent
8165ec66e9
commit
a8daa38e83
|
@ -1896,6 +1896,12 @@ int PCB_SELECTION_TOOL::grabUnconnected( const TOOL_EVENT& aEvent )
|
|||
// Check every ratsnest line for the nearest one
|
||||
for( const CN_EDGE& edge : edges )
|
||||
{
|
||||
if( edge.GetSourceNode()->Parent()->GetParentFootprint()
|
||||
== edge.GetTargetNode()->Parent()->GetParentFootprint() )
|
||||
{
|
||||
continue; // This edge is a loop on the same footprint
|
||||
}
|
||||
|
||||
// Figure out if we are the source or the target node on the ratnest
|
||||
const CN_ANCHOR* other = edge.GetSourceNode()->Parent() == pad ? edge.GetTargetNode().get()
|
||||
: edge.GetSourceNode().get();
|
||||
|
|
Loading…
Reference in New Issue