mirror of https://github.com/apache/poi.git
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:
parent
07eb383363
commit
7aeab59f46
|
@ -146,7 +146,7 @@ public final class SectionSprmCompressor
|
||||||
}
|
}
|
||||||
if (newSEP.getDmOrientPage() != DEFAULT_SEP.getDmOrientPage())
|
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())
|
if (newSEP.getXaPage() != DEFAULT_SEP.getXaPage())
|
||||||
{
|
{
|
||||||
|
|
|
@ -17,8 +17,8 @@
|
||||||
|
|
||||||
package org.apache.poi.hwpf.sprm;
|
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.BorderCode;
|
||||||
|
import org.apache.poi.hwpf.usermodel.SectionProperties;
|
||||||
|
|
||||||
public final class SectionSprmUncompressor extends SprmUncompressor
|
public final class SectionSprmUncompressor extends SprmUncompressor
|
||||||
{
|
{
|
||||||
|
@ -143,7 +143,7 @@ public final class SectionSprmUncompressor extends SprmUncompressor
|
||||||
newSEP.setPgnStart ((short) sprm.getOperand());
|
newSEP.setPgnStart ((short) sprm.getOperand());
|
||||||
break;
|
break;
|
||||||
case 0x1d:
|
case 0x1d:
|
||||||
newSEP.setDmOrientPage ((byte) sprm.getOperand());
|
newSEP.setDmOrientPage( sprm.getOperand() != 0 );
|
||||||
break;
|
break;
|
||||||
case 0x1e:
|
case 0x1e:
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue