pcb: grab unconnected needs to ignore same-footprint ratsnets items
This commit is contained in:
parent
e853b593b1
commit
7ea205222d
|
@ -1741,6 +1741,12 @@ int PCB_SELECTION_TOOL::grabUnconnected( const TOOL_EVENT& aEvent )
|
||||||
// Check every ratsnest line for the nearest one
|
// Check every ratsnest line for the nearest one
|
||||||
for( const CN_EDGE& edge : edges )
|
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
|
// 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()
|
const CN_ANCHOR* other = edge.GetSourceNode()->Parent() == pad ? edge.GetTargetNode().get()
|
||||||
: edge.GetSourceNode().get();
|
: edge.GetSourceNode().get();
|
||||||
|
|
Loading…
Reference in New Issue