Commit 2d2ed2a9 authored by dickelbeck's avatar dickelbeck

Magnetism

parent b2daea17
...@@ -372,12 +372,12 @@ static bool Magnetize( BOARD* m_Pcb, WinEDA_PcbFrame* frame, ...@@ -372,12 +372,12 @@ 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
{ {
......
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