Fix sch parser issue with older file versions.

Fixes https://gitlab.com/kicad/code/kicad/issues/4417
This commit is contained in:
Jeff Young 2020-05-12 20:04:49 +01:00
parent ec5f7b35a9
commit ed57c3464d
1 changed files with 1 additions and 1 deletions

View File

@ -1477,7 +1477,7 @@ LIB_TEXT* SCH_SEXPR_PARSER::parseText()
void SCH_SEXPR_PARSER::parsePAGE_INFO( PAGE_INFO& aPageInfo )
{
wxCHECK_RET( CurTok() == T_paper,
wxCHECK_RET( ( CurTok() == T_page && m_requiredVersion <= 20200506 ) || CurTok() == T_paper,
wxT( "Cannot parse " ) + GetTokenString( CurTok() ) + wxT( " as a PAGE_INFO." ) );
T token;