From 2d2ed2a9153d8b6d119d6b323072dc9a7d5152d4 Mon Sep 17 00:00:00 2001 From: dickelbeck Date: Tue, 4 Mar 2008 21:10:18 +0000 Subject: [PATCH] Magnetism --- pcbnew/controle.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/pcbnew/controle.cpp b/pcbnew/controle.cpp index 07acc28912..4e9360dc28 100644 --- a/pcbnew/controle.cpp +++ b/pcbnew/controle.cpp @@ -372,12 +372,12 @@ static bool Magnetize( BOARD* m_Pcb, WinEDA_PcbFrame* frame, { if( via != currTrack ) // a via cannot influence itself { - if( doCheckNet && currTrack && currTrack->GetNet() != via->GetNet() ) - return false; - - *curpos = via->m_Start; - D(printf("via hit\n");) - return true; + if( !doCheckNet || !currTrack || currTrack->GetNet() == via->GetNet() ) + { + *curpos = via->m_Start; + D(printf("via hit\n");) + return true; + } } else {