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