Allow empty lib tables.

Fixes https://gitlab.com/kicad/code/kicad/issues/13653
This commit is contained in:
Jeff Young 2023-01-24 23:37:58 +00:00
parent e886ccacbd
commit 51293858b3
2 changed files with 2 additions and 4 deletions

View File

@ -107,8 +107,7 @@ void FP_LIB_TABLE::Parse( LIB_TABLE_LEXER* in )
in->NeedNUMBER( "version" ); in->NeedNUMBER( "version" );
m_version = std::stoi( in->CurText() ); m_version = std::stoi( in->CurText() );
in->NeedRIGHT(); in->NeedRIGHT();
in->NeedLEFT(); continue;
tok = in->NextTok();
} }
if( tok != T_lib ) if( tok != T_lib )

View File

@ -149,8 +149,7 @@ void SYMBOL_LIB_TABLE::Parse( LIB_TABLE_LEXER* in )
in->NeedNUMBER( "version" ); in->NeedNUMBER( "version" );
m_version = std::stoi( in->CurText() ); m_version = std::stoi( in->CurText() );
in->NeedRIGHT(); in->NeedRIGHT();
in->NeedLEFT(); continue;
tok = in->NextTok();
} }
if( tok != T_lib ) if( tok != T_lib )