additional check and workaround for wrong order (fix TestWordExtractorBugs.testBug50688)

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1144361 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Sergey Vladimirov 2011-07-08 15:41:40 +00:00
parent a496e6c0fa
commit 338cf7bc4d

View File

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