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
This commit is contained in:
parent
7b23ccd114
commit
c8470551bb
@ -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();
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user