Protection against non consecutive net codes.

This commit is contained in:
Maciej Suminski 2014-02-04 13:40:39 +01:00
parent 0b9a8709f8
commit 347649e855
1 changed files with 3 additions and 0 deletions

View File

@ -66,6 +66,9 @@ public:
for( unsigned int i = 0; i < aBoard->GetNetCount(); i++ )
{
NETINFO_ITEM* ni = aBoard->FindNet( i );
if( ni == NULL )
continue;
wxString netClassName = ni->GetClassName();
NETCLASS* nc = aBoard->m_NetClasses.Find( netClassName );
int clearance = nc->GetClearance();