Allow pageLayout files to have no graphic items.

Fixes: lp:1486031
* https://bugs.launchpad.net/kicad/+bug/1486031
This commit is contained in:
Jeff Young 2019-08-20 12:47:04 +01:00
parent 054a24c26e
commit bb8096497a
1 changed files with 5 additions and 0 deletions

View File

@ -220,8 +220,13 @@ void PAGE_LAYOUT_READER_PARSER::parseSetup( WS_DATA_MODEL* aLayout )
break; break;
} }
} }
// The file is well-formed. If it has no further items, then that's the way the
// user wants it.
aLayout->AllowVoidList( true );
} }
void PAGE_LAYOUT_READER_PARSER::parsePolygon( WS_DATA_ITEM_POLYGONS * aItem ) void PAGE_LAYOUT_READER_PARSER::parsePolygon( WS_DATA_ITEM_POLYGONS * aItem )
{ {
for( T token = NextTok(); token != T_RIGHT && token != EOF; token = NextTok() ) for( T token = NextTok(); token != T_RIGHT && token != EOF; token = NextTok() )