From: Said Ryan Ackley Date: Thu, 8 Jan 2004 11:09:37 +0000 (+0000) Subject: fixed a simple bug (25781) X-Git-Tag: PERF_BEFORE_MERGE~63 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=a24f1136d0c6c1174ee586cd44ecbc7ea2e45dda;p=poi.git fixed a simple bug (25781) git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@353484 13f79535-47bb-0310-9956-ffa450edef68 --- 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 f83b810c93..11bb206a11 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)