mirror of
https://gitlab.com/kicad/code/kicad.git
synced 2025-04-20 00:21:31 +00:00
Don't re-read tokens on error
If the data were empty, there is no token, so curTok will represent the right paren, not the next token Fixes https://gitlab.com/kicad/code/kicad/-/issues/20301
This commit is contained in:
parent
029f72161b
commit
d2550138bc
@ -390,8 +390,10 @@ void EMBEDDED_FILES_PARSER::ParseEmbedded( EMBEDDED_FILES* aFiles )
|
||||
catch( const PARSE_ERROR& e )
|
||||
{
|
||||
// No data in the file -- due to bug in writer for 9.0.0
|
||||
NeedRIGHT();
|
||||
break;
|
||||
if( curTok == T_RIGHT )
|
||||
break;
|
||||
else
|
||||
throw e;
|
||||
}
|
||||
catch( ... )
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user