From 1b62fdae92630ab86f06bcf481b235b6b5d88937 Mon Sep 17 00:00:00 2001 From: jp-charras Date: Tue, 13 Sep 2016 19:47:20 +0200 Subject: [PATCH] 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 --- eeschema/sch_legacy_plugin.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/eeschema/sch_legacy_plugin.cpp b/eeschema/sch_legacy_plugin.cpp index b925a06922..8fdb7b766b 100644 --- a/eeschema/sch_legacy_plugin.cpp +++ b/eeschema/sch_legacy_plugin.cpp @@ -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 {