Protection against non consecutive net codes.
This commit is contained in:
parent
0b9a8709f8
commit
347649e855
|
@ -66,6 +66,9 @@ public:
|
||||||
for( unsigned int i = 0; i < aBoard->GetNetCount(); i++ )
|
for( unsigned int i = 0; i < aBoard->GetNetCount(); i++ )
|
||||||
{
|
{
|
||||||
NETINFO_ITEM* ni = aBoard->FindNet( i );
|
NETINFO_ITEM* ni = aBoard->FindNet( i );
|
||||||
|
if( ni == NULL )
|
||||||
|
continue;
|
||||||
|
|
||||||
wxString netClassName = ni->GetClassName();
|
wxString netClassName = ni->GetClassName();
|
||||||
NETCLASS* nc = aBoard->m_NetClasses.Find( netClassName );
|
NETCLASS* nc = aBoard->m_NetClasses.Find( netClassName );
|
||||||
int clearance = nc->GetClearance();
|
int clearance = nc->GetClearance();
|
||||||
|
|
Loading…
Reference in New Issue