From 2857dc155c174b4da490238b167135793d9997e1 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 496e7f4ac..9692ba014 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)));