Dirty fix for processing equ files having dot inside a filename like 'res.0805.equ'

Altough it is a bad practice to have such files :)
This commit is contained in:
Vladimir Ur 2011-06-16 18:40:58 +04:00
parent 48b2661baa
commit a8e995cb4b
1 changed files with 11 additions and 1 deletions

View File

@ -72,7 +72,17 @@ void CVPCB_MAINFRAME::AssocieModule( wxCommandEvent& event )
for( ii = 0; ii < m_AliasLibNames.GetCount(); ii++ ) for( ii = 0; ii < m_AliasLibNames.GetCount(); ii++ )
{ {
fn = m_AliasLibNames[ii]; fn = m_AliasLibNames[ii];
//msg.Printf( _( "Library: %s." ),
// GetChars( fn.GetFullName() ) );
//wxMessageBox( msg, titleLibLoadError, wxOK | wxICON_ERROR );
if( !fn.HasExt() ) {
fn.SetExt( FootprintAliasFileExtension ); fn.SetExt( FootprintAliasFileExtension );
// above fails if filename have more than one point
}
else
{
fn.SetExt( fn.GetExt() + wxT( "." ) + FootprintAliasFileExtension );
}
tmp = wxGetApp().FindLibraryPath( fn ); tmp = wxGetApp().FindLibraryPath( fn );
if( !tmp ) if( !tmp )