diff --git a/src/scratchpad/src/org/apache/poi/hwpf/sprm/SprmUtils.java b/src/scratchpad/src/org/apache/poi/hwpf/sprm/SprmUtils.java index f83b810c9..11bb206a1 100644 --- a/src/scratchpad/src/org/apache/poi/hwpf/sprm/SprmUtils.java +++ b/src/scratchpad/src/org/apache/poi/hwpf/sprm/SprmUtils.java @@ -79,7 +79,7 @@ public class SprmUtils public static int addSprm(short instruction, int param, byte[] varParam, List list) { - int type = instruction & 0xe000; + int type = (instruction & 0xe000) >> 13; byte[] sprm = null; switch(type)