From 5bbd7cb0132af2a2dd0744d94e7a99192de4e672 Mon Sep 17 00:00:00 2001 From: jean-pierre charras Date: Wed, 27 Mar 2013 20:36:10 +0100 Subject: [PATCH] Better fix for bug #1155888 --- common/class_page_info.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/common/class_page_info.cpp b/common/class_page_info.cpp index 9e61f04365..1166ad89c6 100644 --- a/common/class_page_info.cpp +++ b/common/class_page_info.cpp @@ -330,8 +330,8 @@ void PAGE_INFO::Format( OUTPUTFORMATTER* aFormatter, int aNestLevel, int aContro GetCustomWidthMils() * 25.4 / 1000.0, GetCustomHeightMils() * 25.4 / 1000.0 ); - if( IsPortrait() ) - aFormatter->Print( 0, " portrait" ); + if( !IsCustom() && IsPortrait() ) + aFormatter->Print( 0, " portrait" ); aFormatter->Print( 0, ")\n" ); }