From c8470551bbc1d2b21c6932fdd2bb1d3dde56139e Mon Sep 17 00:00:00 2001 From: Avik Sengupta Date: Thu, 6 Jun 2002 06:03:17 +0000 Subject: [PATCH] fix to bug 9518, submitted by Shawn Laubach git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@352661 13f79535-47bb-0310-9956-ffa450edef68 --- .../org/apache/poi/hssf/usermodel/HSSFPrintSetup.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/java/org/apache/poi/hssf/usermodel/HSSFPrintSetup.java b/src/java/org/apache/poi/hssf/usermodel/HSSFPrintSetup.java index 409d82ad1..c8e2eec9e 100644 --- a/src/java/org/apache/poi/hssf/usermodel/HSSFPrintSetup.java +++ b/src/java/org/apache/poi/hssf/usermodel/HSSFPrintSetup.java @@ -64,7 +64,7 @@ import org.apache.poi.hssf.record.PrintSetupRecord; public class HSSFPrintSetup extends Object { PrintSetupRecord printSetupRecord; - + /** * Constructor. Takes the low level print setup record. * @param printSetupRecord the low level print setup record @@ -118,7 +118,7 @@ public class HSSFPrintSetup extends Object { printSetupRecord.setFitHeight(height); } - + /** * Sets the options flags. Not advisable to do it directly. * @param options The bit flags for the options @@ -144,7 +144,7 @@ public class HSSFPrintSetup extends Object { */ public void setLandscape(boolean ls) { - printSetupRecord.setLandscape(ls); + printSetupRecord.setLandscape(!ls); } /** @@ -156,7 +156,7 @@ public class HSSFPrintSetup extends Object { printSetupRecord.setValidSettings(valid); } - + /** * Set whether it is black and white * @param mono Black and white @@ -316,7 +316,7 @@ public class HSSFPrintSetup extends Object { */ public boolean getLandscape() { - return printSetupRecord.getLandscape(); + return !printSetupRecord.getLandscape(); } /**