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:
parent
a496e6c0fa
commit
338cf7bc4d
@ -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 );
|
||||
|
Loading…
Reference in New Issue
Block a user