Browse Source

Fix sch parser issue with older file versions.

Fixes https://gitlab.com/kicad/code/kicad/issues/4417
pull/16/head
Jeff Young 6 years ago
parent
commit
ed57c3464d
  1. 2
      eeschema/sch_sexpr_parser.cpp

2
eeschema/sch_sexpr_parser.cpp

@ -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;

Loading…
Cancel
Save