poi-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ser...@apache.org
Subject svn commit: r1144676 - /poi/trunk/src/scratchpad/src/org/apache/poi/hwpf/model/CHPFormattedDiskPage.java
Date Sat, 09 Jul 2011 14:25:25 GMT
Author: sergey
Date: Sat Jul  9 14:25:25 2011
New Revision: 1144676

URL: http://svn.apache.org/viewvc?rev=1144676&view=rev
Log:
better way to check if CPHX references any part of text

Modified:
    poi/trunk/src/scratchpad/src/org/apache/poi/hwpf/model/CHPFormattedDiskPage.java

Modified: poi/trunk/src/scratchpad/src/org/apache/poi/hwpf/model/CHPFormattedDiskPage.java
URL: http://svn.apache.org/viewvc/poi/trunk/src/scratchpad/src/org/apache/poi/hwpf/model/CHPFormattedDiskPage.java?rev=1144676&r1=1144675&r2=1144676&view=diff
==============================================================================
--- poi/trunk/src/scratchpad/src/org/apache/poi/hwpf/model/CHPFormattedDiskPage.java (original)
+++ poi/trunk/src/scratchpad/src/org/apache/poi/hwpf/model/CHPFormattedDiskPage.java Sat Jul
 9 14:25:25 2011
@@ -63,7 +63,7 @@ public final class CHPFormattedDiskPage 
     	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)));



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@poi.apache.org
For additional commands, e-mail: commits-help@poi.apache.org


Mime
View raw message