From d31c0995f9920de489bde70021a18d20242d06df Mon Sep 17 00:00:00 2001 From: faa Date: Wed, 3 Jun 2009 17:18:39 +0000 Subject: [PATCH] pcb crashes autoroute --- pcbnew/board.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pcbnew/board.cpp b/pcbnew/board.cpp index 417b135829..dd566f7b74 100644 --- a/pcbnew/board.cpp +++ b/pcbnew/board.cpp @@ -351,7 +351,7 @@ int Build_Work( BOARD* Pcb ) InitWork(); /* clear work list */ Ntotal = 0; - for( unsigned ii = 0;Pcb->GetRatsnestsCount(); ii++ ) + for( unsigned ii = 0; ii < Pcb->GetRatsnestsCount(); ii++ ) { pt_rats = &Pcb->m_FullRatsnest[ii]; /* On ne route que les chevelus actifs et routables */ @@ -402,7 +402,8 @@ int Build_Work( BOARD* Pcb ) return 0; } - SetWork( r1, c1, current_net_code, r2, c2, pt_ch, 0 ); Ntotal++; + SetWork( r1, c1, current_net_code, r2, c2, pt_ch, 0 ); + Ntotal++; } SortWork();