Commit a8e995cb authored by Vladimir Ur's avatar Vladimir Ur
Browse files

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
Loading
Loading
Loading
Loading
+11 −1
Original line number Diff line number Diff line
@@ -72,7 +72,17 @@ void CVPCB_MAINFRAME::AssocieModule( wxCommandEvent& event )
    for( ii = 0; ii < m_AliasLibNames.GetCount(); ii++ )
    {
        fn = m_AliasLibNames[ii];
            //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 )