Allow pageLayout files to have no graphic items.
Fixes: lp:1486031 * https://bugs.launchpad.net/kicad/+bug/1486031
This commit is contained in:
parent
054a24c26e
commit
bb8096497a
|
@ -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() )
|
||||||
|
|
Loading…
Reference in New Issue