Fix but reading empty footprints in netlist. (fixes lp:1226283)

* Remove fp_lib token from board and s-expr netlist file format.
* Fix a bunch of Doxygen warnings.
* Remove some extra debug log messages.
This commit is contained in:
Wayne Stambaugh
2013-09-16 20:52:08 -04:00
parent 7de43e4aec
commit 0224bc2f58
31 changed files with 67 additions and 66 deletions
+8 -7
View File
@@ -1549,7 +1549,14 @@ MODULE* PCB_PARSER::parseMODULE( wxArrayString* aInitialComments ) throw( IO_ERR
module->SetInitialComments( aInitialComments );
NeedSYMBOLorNUMBER();
fpid.SetFootprintName( FromUTF8() );
if( fpid.Parse( FromUTF8() ) >= 0 )
{
wxString error;
error.Printf( _( "invalid PFID in\nfile: <%s>\nline: %d\noffset: %d" ),
GetChars( CurSource() ), CurLineNumber(), CurOffset() );
THROW_IO_ERROR( error );
}
for( token = NextTok(); token != T_RIGHT; token = NextTok() )
{
@@ -1566,12 +1573,6 @@ MODULE* PCB_PARSER::parseMODULE( wxArrayString* aInitialComments ) throw( IO_ERR
module->SetIsPlaced( true );
break;
case T_fp_lib:
NeedSYMBOLorNUMBER();
fpid.SetLibNickname( FromUTF8() );
NeedRIGHT();
break;
case T_layer:
module->SetLayer( parseBoardItemLayer() );
NeedRIGHT();