Bug 19961 - [PATCH] Sheet.getColumnWidth() returns wrong value
Summary: [PATCH] Sheet.getColumnWidth() returns wrong value
Alias: None
Product: POI
Classification: Unclassified
Component: HSSF (show other bugs)
Version: unspecified
Hardware: Other other
: P3 normal (vote)
Target Milestone: ---
Assignee: POI Developers List
Depends on:
Reported: 2003-05-15 17:02 UTC by John Lloyd
Modified: 2004-11-16 19:05 UTC (History)
0 users

patch file that changes condition in Sheet.getColumnWidth() (452 bytes, patch)
2003-05-15 17:03 UTC, John Lloyd
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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!!