//getLogger().debug("fixing region "+region.getRowFrom()+","+region.getColumnFrom()+"-"+
// region.getRowTo()+","+region.getColumnTo());
for (int rownum = region.getRowFrom(); rownum < region.getRowTo() +1; rownum++) {
HSSFRow row = _sheet.getRow(rownum);
for (short colnum = region.getColumnFrom(); colnum < region.getColumnTo()+1; colnum ++) {
HSSFCellStyle style = (HSSFCellStyle)regions.get(region);
if (!isBlank(style)) { //don't waste time with huge blocks of blankly
//styled cells
if (row == null) {
if (rownum > Short.MAX_VALUE)
{ rownum = Short.MAX_VALUE; }
row = _sheet.createRow((int)rownum);
}
HSSFCell cell = row.getCell(colnum);
if (cell == null) {
//getLogger().debug("creating blank cell at "+rownum + "," +colnum);
cell = row.createCell(colnum,HSSFCell.CELL_TYPE_BLANK);
cell.setCellStyle((HSSFCellStyle)regions.get(region));
}
}
}