From afc880d6d3f4214874ce137cc5f3f5b6960a1a0e Mon Sep 17 00:00:00 2001 From: Sergey Vladimirov Date: Sat, 9 Jul 2011 14:25:25 +0000 Subject: [PATCH] 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 --- .../src/org/apache/poi/hwpf/model/CHPFormattedDiskPage.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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))); -- 2.39.5