ASF Bugzilla – Attachment 31564 Details for
Bug 56274
SXSSF produces corrupt xlsx file from valid xlsx template
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch for fixing the bug
fix_for_bug_#56274.patch (text/plain), 1.41 KB, created by
Yaniv Kunda
on 2014-04-27 10:58:11 UTC
(
hide
)
Description:
Patch for fixing the bug
Filename:
MIME Type:
Creator:
Yaniv Kunda
Created:
2014-04-27 10:58:11 UTC
Size:
1.41 KB
patch
obsolete
>Index: ../../repository/SupportingLibraries/poi-3.10-wc/src/ooxml/java/org/apache/poi/xssf/usermodel/XSSFTable.java >IDEA additional info: >Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP ><+>UTF-8 >=================================================================== >--- ../../repository/SupportingLibraries/poi-3.10-wc/src/ooxml/java/org/apache/poi/xssf/usermodel/XSSFTable.java (revision ) >+++ ../../repository/SupportingLibraries/poi-3.10-wc/src/ooxml/java/org/apache/poi/xssf/usermodel/XSSFTable.java (revision ) >@@ -294,13 +294,15 @@ > int firstHeaderColumn = ref.getCol(); > XSSFRow row = sheet.getRow(headerRow); > >- if(row != null) for(CTTableColumn col : getCTTable().getTableColumns().getTableColumnList()){ >- int colIdx = (int)col.getId() - 1 + firstHeaderColumn; >- XSSFCell cell = row.getCell(colIdx); >+ if (row != null && row.getCTRow().validate()) { >+ int cellnum = firstHeaderColumn; >+ for (CTTableColumn col : getCTTable().getTableColumns().getTableColumnList()) { >+ XSSFCell cell = row.getCell(cellnum); >- if(cell != null) { >+ if (cell != null) { >- col.setName(cell.getStringCellValue()); >- } >+ col.setName(cell.getStringCellValue()); >+ } >+ cellnum++; >- } >+ } >- >+ } > } > }
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 56274
:
31393
|
31403
| 31564 |
31605
|
31606