remove a change in connect.cpp(was made for debug)

This commit is contained in:
CHARRAS 2007-10-19 08:32:10 +00:00
parent cfc6872238
commit ab436f0aa7
2 changed files with 7 additions and 13 deletions

View File

@ -361,8 +361,6 @@ void WinEDA_BasePcbFrame::test_1_net_connexion( wxDC* DC, int net_code )
} }
bool zflg; // DEBUG, must be removed
/***************************************************************************/ /***************************************************************************/
static void calcule_connexite_1_net( TRACK* pt_start_conn, TRACK* pt_end_conn ) static void calcule_connexite_1_net( TRACK* pt_start_conn, TRACK* pt_end_conn )
/***************************************************************************/ /***************************************************************************/
@ -421,21 +419,18 @@ static void calcule_connexite_1_net( TRACK* pt_start_conn, TRACK* pt_end_conn )
} }
} }
zflg = false;
if( Track->start == NULL ) // end track not already connected, search a connection if( Track->start == NULL ) // end track not already connected, search a connection
{ {
Track->start = Locate_Piste_Connectee( Track, pt_start_conn /*Track*/, pt_end_conn, START ); Track->start = Locate_Piste_Connectee( Track, Track, pt_end_conn, START );
} }
if( Track->end == NULL ) // end track not already connected, search a connection if( Track->end == NULL ) // end track not already connected, search a connection
{ {
Track->end = Locate_Piste_Connectee( Track, pt_start_conn/*Track*/, pt_end_conn, END ); Track->end = Locate_Piste_Connectee( Track, Track, pt_end_conn, END );
} }
if( Track == pt_end_conn ) if( Track == pt_end_conn )
break; break;
} }
zflg = false;
/* Generation des sous equipots du net */ /* Generation des sous equipots du net */
propage_equipot( pt_start_conn, pt_end_conn ); propage_equipot( pt_start_conn, pt_end_conn );

View File

@ -669,11 +669,10 @@ inline bool IsPointsAreNear(wxPoint & p1, wxPoint & p2, int max_dist)
/******************************************************************/ /******************************************************************/
/* /*
return true if the dist between p1 and p2 < max_dist return true if the dist between p1 and p2 < max_dist
Currently in test (currently rasnest algos work only if p1 == p2 Currently in test (currently rasnest algos work only if p1 == p2)
*/ */
{ {
extern bool zflg; #if 0 // Do not change it: does not work
if (zflg == true)
{ {
int dist; int dist;
dist = abs(p1.x - p2.x) + abs (p1.y - p2.y); dist = abs(p1.x - p2.x) + abs (p1.y - p2.y);
@ -681,9 +680,9 @@ int dist;
dist /= 10; dist /= 10;
if ( dist < max_dist ) return true; if ( dist < max_dist ) return true;
} }
else #else
if ( p1 == p2 ) return true; if ( p1 == p2 ) return true;
//#endif #endif
return false; return false;
} }