HWPFDocument: minor cleanup

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@961343 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Maxim Valyanskiy 2010-07-07 10:42:23 +00:00
parent d7c62aae58
commit 870bef12f1
1 changed files with 1 additions and 2 deletions

View File

@ -280,8 +280,7 @@ public final class HWPFDocument extends HWPFDocumentCore
*/
public Range getOverallRange() {
// hack to get the ending cp of the document, Have to revisit this.
java.util.List text = _tpt.getTextPieces();
PropertyNode p = (PropertyNode)text.get(text.size() - 1);
PropertyNode p = _tpt.getTextPieces().get(_tpt.getTextPieces().size() - 1);
return new Range(0, p.getEnd(), this);
}