}
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())
{
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
{
newSEP.setPgnStart ((short) sprm.getOperand());
break;
case 0x1d:
- newSEP.setDmOrientPage ((byte) sprm.getOperand());
+ newSEP.setDmOrientPage( sprm.getOperand() != 0 );
break;
case 0x1e: