Commit 4c001cd4 authored by charras's avatar charras

improved OSX compatibility and fixed possible crash in debug mode in Pcbnew

parent 1868bb8e
......@@ -827,10 +827,12 @@ NETINFO_ITEM* BOARD::FindNet( int anetcode ) const
// zero is reserved for "no connection" and is not used.
// NULL is returned for non valid netcodes
NETINFO_ITEM* item = m_NetInfo->GetNetItem( anetcode );
#if defined(DEBUG)
if ( item ) // item can be NULL if not valid
{
wxASSERT( anetcode == item->GetNet() );
}
#endif
return item;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment