poi-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ser...@apache.org
Subject svn commit: r1144361 - /poi/trunk/src/scratchpad/src/org/apache/poi/hwpf/model/FieldsTables.java
Date Fri, 08 Jul 2011 15:41:40 GMT
Author: sergey
Date: Fri Jul  8 15:41:40 2011
New Revision: 1144361

URL: http://svn.apache.org/viewvc?rev=1144361&view=rev
Log:
additional check and workaround for wrong order (fix TestWordExtractorBugs.testBug50688)

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

Modified: poi/trunk/src/scratchpad/src/org/apache/poi/hwpf/model/FieldsTables.java
URL: http://svn.apache.org/viewvc/poi/trunk/src/scratchpad/src/org/apache/poi/hwpf/model/FieldsTables.java?rev=1144361&r1=1144360&r2=1144361&view=diff
==============================================================================
--- poi/trunk/src/scratchpad/src/org/apache/poi/hwpf/model/FieldsTables.java (original)
+++ poi/trunk/src/scratchpad/src/org/apache/poi/hwpf/model/FieldsTables.java Fri Jul  8 15:41:40
2011
@@ -182,6 +182,13 @@ public class FieldsTables
                 GenericPropertyNode endNode = nodes[endNodePositionInArray];
                 PlexOfField endPlexOfField = new PlexOfField( endNode );
 
+                if ( endPlexOfField.getFld().getBoundaryType() != FieldDescriptor.FIELD_END_MARK
)
+                {
+                    /* Not and ending mark */
+                    next++;
+                    continue;
+                }
+
                 Field field = new Field( startPlexOfField,
                         separatorPlexOfField, endPlexOfField );
                 result.add( field );



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


Mime
View raw message