From: Sergey Vladimirov Date: Sat, 16 Jul 2011 09:12:22 +0000 (+0000) Subject: update SEP definition X-Git-Tag: REL_3_8_BETA4~170 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=7aeab59f46e7ce79a0bb8ae3bf7f7e359a5adb74;p=poi.git update SEP definition git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1147387 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/src/scratchpad/src/org/apache/poi/hwpf/sprm/SectionSprmCompressor.java b/src/scratchpad/src/org/apache/poi/hwpf/sprm/SectionSprmCompressor.java index 552856bcb6..043fe5d519 100644 --- a/src/scratchpad/src/org/apache/poi/hwpf/sprm/SectionSprmCompressor.java +++ b/src/scratchpad/src/org/apache/poi/hwpf/sprm/SectionSprmCompressor.java @@ -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()) { diff --git a/src/scratchpad/src/org/apache/poi/hwpf/sprm/SectionSprmUncompressor.java b/src/scratchpad/src/org/apache/poi/hwpf/sprm/SectionSprmUncompressor.java index 2fc2a92fe9..58df1481f5 100644 --- a/src/scratchpad/src/org/apache/poi/hwpf/sprm/SectionSprmUncompressor.java +++ b/src/scratchpad/src/org/apache/poi/hwpf/sprm/SectionSprmUncompressor.java @@ -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: