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:
Sergey Vladimirov 2011-07-15 12:45:44 +00:00
parent ceef67e126
commit 48dbdca2bd
1 changed files with 6 additions and 1 deletions

View File

@ -41,7 +41,12 @@ public class Field
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()