|Summary:||[PATCH] Sheet.getColumnWidth() returns wrong value|
|Product:||POI||Reporter:||John Lloyd <lloydj>|
|Component:||HSSF||Assignee:||POI Developers List <dev>|
|Attachments:||patch file that changes condition in Sheet.getColumnWidth()|
Description John Lloyd 2003-05-15 17:02:06 UTC
Sheet.getColumnWidth() returns the value of the next column to the right with an explicitly set column width, when querying the width of a column using the default. This is because of an incorrect condition to test is a column is within a certain range. I will attach a patch containing the fix.
Comment 1 John Lloyd 2003-05-15 17:03:06 UTC
Created attachment 6366 [details] patch file that changes condition in Sheet.getColumnWidth()
Comment 2 Avik Sengupta 2003-07-01 15:13:28 UTC
Anybody have a testcase for this.. please?
Comment 3 Andy Oliver 2003-07-24 16:32:15 UTC
seems straightforward. this should be applied.
Comment 4 Avik Sengupta 2003-07-31 19:04:27 UTC
This bug had been fixed in Sheet.java rev 1.29 thru the patch in bug 18090 . It however made its reappearance at the merge of the performance branch in rev 1.36. Thus, this patch is applied only to HEAD, since rel_2_branch (branch point rev 1.31) is correct. Moral of the story... testcase!!