Magnetism

This commit is contained in:
dickelbeck 2008-03-04 21:10:18 +00:00
parent b2daea17bc
commit 2d2ed2a915
1 changed files with 6 additions and 6 deletions

View File

@ -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
{ {