ASF Bugzilla – Attachment 28685 Details for
Bug 50083
Workbook.setSheetOrder does not fixup record list
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
patch for version 3.8
InternalWorkbook_patch.txt (text/plain), 789 bytes, created by
recyclebin5385
on 2012-04-26 13:23:22 UTC
(
hide
)
Description:
patch for version 3.8
Filename:
MIME Type:
Creator:
recyclebin5385
Created:
2012-04-26 13:23:22 UTC
Size:
789 bytes
patch
obsolete
>Index: src/java/org/apache/poi/hssf/model/InternalWorkbook.java >=================================================================== >--- src/java/org/apache/poi/hssf/model/InternalWorkbook.java (revision 1330076) >+++ src/java/org/apache/poi/hssf/model/InternalWorkbook.java (working copy) >@@ -753,8 +753,10 @@ > */ > public void removeSheet(int sheetIndex) { > if (boundsheets.size() > sheetIndex) { >- records.remove(records.getBspos() - (boundsheets.size() - 1) + sheetIndex); >- boundsheets.remove(sheetIndex); >+ BoundSheetRecord removedRecord = boundsheets.remove(sheetIndex); >+ >+ // keep consistency between "boundsheets" and "records" >+ records.remove(removedRecord); > fixTabIdRecord(); > } >
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 50083
:
27231
| 28685 |
29024
|
29034