Bug 28232 - [PATCH] Fix for Section ranges
Summary: [PATCH] Fix for Section ranges
Status: RESOLVED FIXED
Alias: None
Product: POI
Classification: Unclassified
Component: HDF (show other bugs)
Version: unspecified
Hardware: Other other
: P3 critical (vote)
Target Milestone: ---
Assignee: POI Developers List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-04-06 15:21 UTC by Piers
Modified: 2004-11-16 19:05 UTC (History)
0 users



Attachments
HWPFDocument.java, SectionTable.java, TextPiece.java, TextPieceTable.java (5.81 KB, patch)
2004-04-06 15:23 UTC, Piers
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Piers 2004-04-06 15:21:53 UTC
Sections do not reference all the text in a section if the section contains 
unicode or if textpieces are non-contiguous.

The fix makes Section's start and end pointers work in FC (file positions) 
rather than CP (character positions). This makes the pointers compatible with 
the way Ranges are handled in HWPF since ranges are always defined in file 
positions. Sections are then returned correctly.
Comment 1 Piers 2004-04-06 15:23:48 UTC
Created attachment 11154 [details]
HWPFDocument.java, SectionTable.java, TextPiece.java, TextPieceTable.java
Comment 2 Glen Stampoultzis 2004-08-26 03:27:12 UTC
Applied in HEAD