Commit 2d2ed2a9 authored by dickelbeck's avatar dickelbeck

Magnetism

parent b2daea17
...@@ -372,13 +372,13 @@ static bool Magnetize( BOARD* m_Pcb, WinEDA_PcbFrame* frame, ...@@ -372,13 +372,13 @@ static bool Magnetize( BOARD* m_Pcb, WinEDA_PcbFrame* frame,
{ {
if( via != currTrack ) // a via cannot influence itself if( via != currTrack ) // a via cannot influence itself
{ {
if( doCheckNet && currTrack && currTrack->GetNet() != via->GetNet() ) if( !doCheckNet || !currTrack || currTrack->GetNet() == via->GetNet() )
return false; {
*curpos = via->m_Start; *curpos = via->m_Start;
D(printf("via hit\n");) D(printf("via hit\n");)
return true; return true;
} }
}
else else
{ {
D( printf( "skipping self\n" ); ) D( printf( "skipping self\n" ); )
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment