Fixes: lp:1623060 (EEschema page orientation is not retrieved when compiled with KICAD_USE_SCH_IO_MANAGER=ON)

https://bugs.launchpad.net/kicad/+bug/1623060
This commit is contained in:
jp-charras 2016-09-13 19:47:20 +02:00
parent 516510774c
commit 1b62fdae92
1 changed files with 5 additions and 2 deletions

View File

@ -658,10 +658,13 @@ void SCH_LEGACY_PLUGIN::loadPageSettings( FILE_LINE_READER& aReader, SCH_SCREEN*
if( !pageInfo.SetType( buf ) )
SCH_PARSE_ERROR( _( "invalid page size" ), aReader, line );
int pagew = parseInt( aReader, line, &line );
int pageh = parseInt( aReader, line, &line );
if( buf == PAGE_INFO::Custom )
{
pageInfo.SetWidthMils( parseInt( aReader, line, &line ) );
pageInfo.SetHeightMils( parseInt( aReader, line, &line ) );
pageInfo.SetWidthMils( pagew );
pageInfo.SetHeightMils( pageh );
}
else
{