Allow empty lib tables.
Fixes https://gitlab.com/kicad/code/kicad/issues/13653
This commit is contained in:
parent
e886ccacbd
commit
51293858b3
|
@ -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 )
|
||||||
|
|
|
@ -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 )
|
||||||
|
|
Loading…
Reference in New Issue