update SEP definition

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1147387 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Sergey Vladimirov 2011-07-16 09:12:22 +00:00
parent 07eb383363
commit 7aeab59f46
2 changed files with 3 additions and 3 deletions

View File

@ -146,7 +146,7 @@ public final class SectionSprmCompressor
}
if (newSEP.getDmOrientPage() != DEFAULT_SEP.getDmOrientPage())
{
size += SprmUtils.addSprm((short)0x301D, newSEP.getDmOrientPage(), null, sprmList);
size += SprmUtils.addSprm((short)0x301D, newSEP.getDmOrientPage() ? 1 : 0, null, sprmList);
}
if (newSEP.getXaPage() != DEFAULT_SEP.getXaPage())
{

View File

@ -17,8 +17,8 @@
package org.apache.poi.hwpf.sprm;
import org.apache.poi.hwpf.usermodel.SectionProperties;
import org.apache.poi.hwpf.usermodel.BorderCode;
import org.apache.poi.hwpf.usermodel.SectionProperties;
public final class SectionSprmUncompressor extends SprmUncompressor
{
@ -143,7 +143,7 @@ public final class SectionSprmUncompressor extends SprmUncompressor
newSEP.setPgnStart ((short) sprm.getOperand());
break;
case 0x1d:
newSEP.setDmOrientPage ((byte) sprm.getOperand());
newSEP.setDmOrientPage( sprm.getOperand() != 0 );
break;
case 0x1e: