Fix Pcbnew s-expr file parser bug.

This commit is contained in:
Wayne Stambaugh 2012-12-30 10:40:05 -05:00
parent f4af52f94d
commit 6789e62210
2 changed files with 5 additions and 5 deletions

View File

@ -1670,7 +1670,7 @@ void TITLE_BLOCK::Format( OUTPUTFORMATTER* aFormatter, int aNestLevel, int aCont
|| !m_company.IsEmpty() || !m_comment1.IsEmpty() || !m_comment2.IsEmpty()
|| !m_comment3.IsEmpty() || !m_comment4.IsEmpty() )
{
aFormatter->Print( aNestLevel, "(title_block " );
aFormatter->Print( aNestLevel, "(title_block \n" );
if( !m_title.IsEmpty() )
aFormatter->Print( aNestLevel+1, "(title %s)\n",

View File

@ -264,7 +264,7 @@ S3D_MASTER* PCB_PARSER::parse3DModel() throw( PARSE_ERROR )
auto_ptr< S3D_MASTER > n3D( new S3D_MASTER( NULL ) );
NeedSYMBOL();
NeedSYMBOLorNUMBER();
n3D->m_Shape3DName = FromUTF8();
for( token = NextTok(); token != T_RIGHT; token = NextTok() )
@ -592,12 +592,12 @@ void PCB_PARSER::parseTITLE_BLOCK() throw( IO_ERROR, PARSE_ERROR )
switch( token )
{
case T_title:
NeedSYMBOL();
NextTok();
titleBlock.SetTitle( FromUTF8() );
break;
case T_date:
NeedSYMBOL();
NextTok();
titleBlock.SetDate( FromUTF8() );
break;
@ -1587,7 +1587,7 @@ MODULE* PCB_PARSER::parseMODULE() throw( IO_ERROR, PARSE_ERROR )
break;
case T_path:
NeedSYMBOL();
NeedSYMBOLorNUMBER(); // Paths can be numerical so a number is also a symbol here
module->SetPath( FromUTF8() );
NeedRIGHT();
break;