Add (a somewhat hacked) future format error for page layout files.

This commit is contained in:
Jeff Young 2021-08-27 13:16:06 +01:00
parent b2fbf982a8
commit 2975e85950
2 changed files with 10 additions and 0 deletions

View File

@ -128,6 +128,14 @@ void PAGE_LAYOUT_READER_PARSER::Parse( WORKSHEET_LAYOUT* aLayout )
if( token == T_LEFT )
token = NextTok();
if( token == T_kicad_wks || token == T_drawing_sheet )
{
THROW_PARSE_ERROR( _( "KiCad was unable to open this file because it was created with "
"a more recent version than the one you are running.\n\n"
"To open it you will need to upgrade KiCad to 5.99 or later." ),
CurSource(), CurLine(), CurLineNumber(), CurOffset() );
}
if( token == T_page_layout )
continue;

View File

@ -1,3 +1,5 @@
drawing_sheet
kicad_wks
page_layout
setup
left_margin