Commit a8e995cb authored by Vladimir Ur's avatar Vladimir Ur

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 :)
parent 48b2661b
...@@ -72,7 +72,17 @@ void CVPCB_MAINFRAME::AssocieModule( wxCommandEvent& event ) ...@@ -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];
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 ); tmp = wxGetApp().FindLibraryPath( fn );
if( !tmp ) if( !tmp )
......
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