You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@poi.apache.org by bu...@apache.org on 2017/12/06 12:39:37 UTC
[Bug 61798] Corrupted Excel file produced due to wrong dimension
calculation during XSSFWorkbook.write(str) call
https://bz.apache.org/bugzilla/show_bug.cgi?id=61798
dolphin.in.the.sky.51@gmail.com changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |dolphin.in.the.sky.51@gmail
| |.com
OS| |All
--- Comment #1 from dolphin.in.the.sky.51@gmail.com ---
Excuse my poor English.
I am applying the patch of the following contents.
in org.apache.xssf.usermodel.XSSFSheet
protected write(OutputStream out) throws IOException {
...
// then calculate min/max cell-numbers for the worksheet-dimension
if(row.getFirstCellNum() != -1) {
// maxCell = Math.min(maxCell, row.getLastCellNum());
maxCell = Math.min(maxCell, row.getLastCellNum()-1);
}
Row.getLastCellNum() is return the index of the last cell contained in this row
PLUS ONE.
I would be pleased if it will be helpful.
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org