From: Sergey Vladimirov Date: Sat, 9 Jul 2011 14:25:25 +0000 (+0000) Subject: better way to check if CPHX references any part of text X-Git-Tag: REL_3_8_BETA4~236 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=afc880d6d3f4214874ce137cc5f3f5b6960a1a0e;p=poi.git better way to check if CPHX references any part of text git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1144676 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/src/scratchpad/src/org/apache/poi/hwpf/model/CHPFormattedDiskPage.java b/src/scratchpad/src/org/apache/poi/hwpf/model/CHPFormattedDiskPage.java index 496e7f4acf..9692ba0142 100644 --- a/src/scratchpad/src/org/apache/poi/hwpf/model/CHPFormattedDiskPage.java +++ b/src/scratchpad/src/org/apache/poi/hwpf/model/CHPFormattedDiskPage.java @@ -63,7 +63,7 @@ public final class CHPFormattedDiskPage extends FormattedDiskPage int startAt = getStart(x); int endAt = getEnd(x); - if (!tpt.isIndexInTable(startAt) && !tpt.isIndexInTable(endAt)) { + if ( !tpt.isIndexInTable( startAt, endAt ) ) { _chpxList.add(null); } else { _chpxList.add(new CHPX(startAt, endAt, tpt, getGrpprl(x)));