ASF Bugzilla – Attachment 33293 Details for
Bug 52903
Shifting rows does not shift hyperlink references
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
patch to fix HSSF shiftrow hyperlink bug
patch.txt (text/plain), 2.07 KB, created by
lyle
on 2015-11-24 22:49:44 UTC
(
hide
)
Description:
patch to fix HSSF shiftrow hyperlink bug
Filename:
MIME Type:
Creator:
lyle
Created:
2015-11-24 22:49:44 UTC
Size:
2.07 KB
patch
obsolete
>Index: build/classes/org/apache/poi/Version.class >=================================================================== >Cannot display: file marked as a binary type. >svn:mime-type = application/octet-stream >Index: build/classes/org/apache/poi/hssf/usermodel/HSSFSheet.class >=================================================================== >Cannot display: file marked as a binary type. >svn:mime-type = application/octet-stream >Index: build/ooxml-lite-merged/ooxml-lite-merged.jar >=================================================================== >Cannot display: file marked as a binary type. >svn:mime-type = application/octet-stream >Index: build/sigtest.xlsx >=================================================================== >Cannot display: file marked as a binary type. >svn:mime-type = application/octet-stream >Index: build/test.pfx >=================================================================== >Cannot display: file marked as a binary type. >svn:mime-type = application/octet-stream >Index: src/java/org/apache/poi/hssf/usermodel/HSSFSheet.java >=================================================================== >--- src/java/org/apache/poi/hssf/usermodel/HSSFSheet.java (revision 1) >+++ src/java/org/apache/poi/hssf/usermodel/HSSFSheet.java (working copy) >@@ -1489,6 +1489,7 @@ > // the destination row > for (Iterator<Cell> cells = row.cellIterator(); cells.hasNext(); ) { > HSSFCell cell = (HSSFCell) cells.next(); >+ HSSFHyperlink link = cell.getHyperlink(); > row.removeCell(cell); > CellValueRecordInterface cellRecord = cell.getCellValueRecord(); > cellRecord.setRow(rowNum + n); >@@ -1495,7 +1496,7 @@ > row2Replace.createCellFromRecord(cellRecord); > _sheet.addValueRecord(rowNum + n, cellRecord); > >- HSSFHyperlink link = cell.getHyperlink(); >+ > if (link != null) { > link.setFirstRow(link.getFirstRow() + n); > link.setLastRow(link.getLastRow() + n);
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 Raw
Actions:
View
Attachments on
bug 52903
:
28462
| 33293 |
33294