handling case with overlapping bookmarks and fields
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1160201 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
50c5c7a98b
commit
ec3ab612c8
@ -81,6 +81,13 @@ public abstract class AbstractWordConverter
|
|||||||
{
|
{
|
||||||
return start < o.start ? -1 : start == o.start ? 0 : 1;
|
return start < o.start ? -1 : start == o.start ? 0 : 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String toString()
|
||||||
|
{
|
||||||
|
return "Structure [" + start + "; " + end + "): "
|
||||||
|
+ structure.toString();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private static final byte BEL_MARK = 7;
|
private static final byte BEL_MARK = 7;
|
||||||
@ -116,8 +123,9 @@ public abstract class AbstractWordConverter
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( ( another.start > structure.start && another.end <= structure.end )
|
if ( ( structure.start < another.start && another.start < structure.end )
|
||||||
|| ( another.start >= structure.start && another.end < structure.end ) )
|
|| ( structure.start < another.start && another.end <= structure.end )
|
||||||
|
|| ( structure.start <= another.start && another.end < structure.end ) )
|
||||||
{
|
{
|
||||||
iterator.remove();
|
iterator.remove();
|
||||||
continue;
|
continue;
|
||||||
|
Loading…
Reference in New Issue
Block a user