SEPX uses chars as boundaries coordinates, don't do double conversions

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1145286 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Sergey Vladimirov 2011-07-11 18:41:53 +00:00
parent df4deaf1ee
commit 8430800f64

View File

@ -19,12 +19,11 @@ package org.apache.poi.hwpf.usermodel;
import java.util.ArrayList;
import org.apache.poi.hwpf.model.SEPX;
import junit.framework.TestCase;
import org.apache.poi.POIDataSamples;
import org.apache.poi.hwpf.HWPFDocument;
import junit.framework.TestCase;
import org.apache.poi.hwpf.model.SEPX;
/**
* Tests for Range which aren't around deletion, insertion, text replacement or
@ -69,8 +68,6 @@ public final class TestRange extends TestCase
// whole document, including additional text from shape
SEPX sepx = sections.get( 0 );
assertEquals( sepx.getStartBytes(), 1024 );
assertEquals( sepx.getEndBytes(), 3880 );
assertEquals( sepx.getStart(), 0 );
assertEquals( sepx.getEnd(), 1428 );