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 d3d59c2096
commit 285ee2ad58

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()