|Summary:||[PATCH] Odd formatting when using user data formats|
|Product:||POI||Reporter:||Shawn Laubach <shawn.laubach>|
|Component:||HSSF||Assignee:||POI Developers List <dev>|
|Attachments:||Patch to Workbook to get user defined formats to not interfere with cell formats|
Description Shawn Laubach 2002-10-02 20:46:21 UTC
Whenever a user defined data format is created before the last cell style format, cells don't always use the correct cell format. This is caused because the insert for format record does not increment the xfformat pos. Copied the code to do this. The patch is coming. Someone can apply it or someone can get me my username/password and I'll apply it.
Comment 1 Shawn Laubach 2002-10-02 20:47:42 UTC
Created attachment 3317 [details] Patch to Workbook to get user defined formats to not interfere with cell formats
Comment 2 Shawn Laubach 2002-10-03 15:47:24 UTC
This bug was caused because some record types need to remain contiguous and the common way to ensure this is by keeping the index into the overall record list to the last record (or one past) of the particular type. This is extremely fast but if something inserts a record in front of that and does not increment all the indexes for each block the occurs afterwards (which is what I did here) things do not come out properly. Has anyone put any thought on a way around this (or at least keep track of the different blocks and their location)?
Comment 3 Shawn Laubach 2002-10-04 21:57:12 UTC
Comment 4 Shawn Laubach 2002-10-07 16:40:57 UTC
Works now. Some time soon, I'm going to look into have format records in an aggregate (and possibly some other sections) to eliminate these types of problems.