mirror of
https://gitlab.com/kicad/code/kicad.git
synced 2025-03-30 05:56:55 +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
(cherry picked from commit d2550138bc
)
This commit is contained in:
parent
e11cf94a3e
commit
e6843cde64
@ -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