segfault eeschema at save whole project

This commit is contained in:
faa 2010-02-14 12:25:50 +00:00
parent 6993761ff9
commit efa9c926e3
1 changed files with 4 additions and 1 deletions

View File

@ -240,6 +240,9 @@ LIB_COMPONENT* CMP_LIBRARY::AddComponent( LIB_COMPONENT* aComponent )
for( size_t i = 0; i < newCmp->m_AliasList.GetCount(); i++ )
{
LIB_ALIAS* alias = FindAlias( newCmp->m_AliasList[ i ] );
if( alias == NULL )
break;
if( alias->GetComponent()->GetName().CmpNoCase( newCmp->GetName() ) != 0 )
{
@ -267,7 +270,7 @@ LIB_COMPONENT* CMP_LIBRARY::AddComponent( LIB_COMPONENT* aComponent )
int diag = wxMessageBox(msg, title, wxYES | wxICON_QUESTION);
if( diag != wxYES )
return NULL;
}
}
for( size_t i = 0; i < newCmp->m_AliasList.GetCount(); i++ )
{