mirror of https://github.com/apache/poi.git
prevent extra text in field
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1147127 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
ceef67e126
commit
48dbdca2bd
|
@ -41,7 +41,12 @@ public class Field
|
||||||
|
|
||||||
public int getEndOffset()
|
public int getEndOffset()
|
||||||
{
|
{
|
||||||
return endPlex.getFcEnd();
|
/*
|
||||||
|
* sometimes plex looks like [100, 2000), where 100 is the position of
|
||||||
|
* field-end character, and 2000 - some other char position, far away
|
||||||
|
* from field (not inside). So taking into account only start --sergey
|
||||||
|
*/
|
||||||
|
return endPlex.getFcStart() + 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
public boolean hasSeparator()
|
public boolean hasSeparator()
|
||||||
|
|
Loading…
Reference in New Issue