Bug 20274 - Problem with setColumnWidth
Summary: Problem with setColumnWidth
Status: RESOLVED FIXED
Alias: None
Product: POI
Classification: Unclassified
Component: HSSF (show other bugs)
Version: 1.5
Hardware: PC Windows XP
: P3 major (vote)
Target Milestone: ---
Assignee: POI Developers List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-05-27 20:34 UTC by PJ "The Yellow Dart"
Modified: 2008-04-02 03:31 UTC (History)
0 users



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description PJ "The Yellow Dart" 2003-05-27 20:34:20 UTC
in the org.apache.poi.hssf.Sheet class the setColumnWidth and getColumnWidth 
methods have a bug. 
if ((ci.getFirstColumn() >= column)
  && (column <= ci.getLastColumn()))
should be:
if ((column >= ci.getFirstColumn())
  && (column <= ci.getLastColumn()))
Comment 1 Yegor Kozlov 2008-04-02 03:31:59 UTC
Fixed in POI 3.0.2+

Yegor