diff --git a/pcbnew/pcb_parser.cpp b/pcbnew/pcb_parser.cpp index d20ad57de3..318fead546 100644 --- a/pcbnew/pcb_parser.cpp +++ b/pcbnew/pcb_parser.cpp @@ -1517,11 +1517,11 @@ MODULE* PCB_PARSER::parseMODULE() throw( IO_ERROR, PARSE_ERROR ) wxT( "Cannot parse " ) + GetTokenString( CurTok() ) + wxT( " as MODULE." ) ); wxPoint pt; - T token; + T token; auto_ptr< MODULE > module( new MODULE( m_board ) ); - NeedSYMBOL(); + NeedSYMBOLorNUMBER(); module->SetLibRef( FromUTF8() ); for( token = NextTok(); token != T_RIGHT; token = NextTok() )