poi-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 48018] Defect in - org.apache.poi.hwpf.model.ListLevel
Date Tue, 20 Oct 2009 18:48:57 GMT

ashokkumar755@yahoo.com changed:

           What    |Removed                     |Added
            Version|unspecified                 |3.5-FINAL

--- Comment #4 from ashokkumar755@yahoo.com 2009-10-20 11:48:56 UTC ---
There is another related bug in Class ListTables which causes discrepancy in
the way MS Word displays multiple lists in a document. Most of the time Word
replaces bullets of 2nd and subsequent lists in the document, with bullets
retrieved from the first LSTF/LVLF records. 

This seems to occur due to re-ordering of ListData(LSTF/LVLF) when it is read
into a HashMap (_listMap) in ListTables constructor method and then written
back to the word document in method writeListDataTo(). 

Even though the  MS Word (97-2007) Binary File format specification (Paragraph
List Formatting, page 48, point 3) states that the LSTF record will be
identified with "List id" from corresponding LFO record by searching, this
doesn't seem to happen inside Word, still there is some dependency on the
original order of LSTF/LVLF records.  

This is fixed in the attached ListTables.java source with the use of a
ArrayList (_ListArr) in the Constructor and writeListDataTo methods in place of
the HashMap (_ListMap).

Also attached is the changed ListLevel.java (method toByteArray()) source for
fixing the Character/Paragraph formatting errors.

Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org

View raw message