fix dead field structure boundaries

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1189226 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Sergey Vladimirov 2011-10-26 14:12:07 +00:00
parent 9e530bcf96
commit f99c017a81

View File

@ -341,7 +341,6 @@ public abstract class AbstractWordConverter
if ( aliveField != null )
{
addToStructures( structures, new Structure( aliveField ) );
skipUntil = aliveField.getFieldEndOffset() + 1;
}
else
{
@ -349,11 +348,14 @@ public abstract class AbstractWordConverter
wordDocument, range, c );
if ( separatorEnd != null )
{
addToStructures( structures,
addToStructures(
structures,
new Structure( new DeadFieldBoundaries( c,
separatorEnd[0], separatorEnd[1] ),
characterRun.getStartOffset(),
separatorEnd[1] + 1 ) );
characterRun.getStartOffset(), range
.getCharacterRun(
separatorEnd[1] )
.getEndOffset() ) );
c = separatorEnd[1];
}
}