From afaba0df943d311055f23195d07f13113c5390a0 Mon Sep 17 00:00:00 2001 From: dickelbeck Date: Wed, 17 Sep 2008 16:52:47 +0000 Subject: [PATCH] brian's patch --- pcbnew/specctra.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/pcbnew/specctra.cpp b/pcbnew/specctra.cpp index f1363e7e0e..9750c8096a 100644 --- a/pcbnew/specctra.cpp +++ b/pcbnew/specctra.cpp @@ -167,7 +167,10 @@ DSN_T SPECCTRA_DB::nextTok() bool SPECCTRA_DB::isSymbol( DSN_T aTok ) { // if aTok is >= 0, then it might be a coincidental match to a keyword. - return aTok==T_SYMBOL || aTok==T_STRING || aTok>=0; + return aTok==T_SYMBOL + || aTok==T_STRING + || aTok>=0 + ; } @@ -1864,7 +1867,7 @@ void SPECCTRA_DB::doCOMPONENT( COMPONENT* growth ) throw( IOError ) { DSN_T tok = nextTok(); - if( !isSymbol( tok ) ) + if( !isSymbol( tok ) && tok != T_NUMBER ) expecting( "image_id" ); growth->image_id = lexer->CurText();