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
This commit is contained in:
Sergey Vladimirov 2011-07-09 14:25:25 +00:00
parent de7cdb2540
commit 2857dc155c

View File

@ -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)));