ASF Bugzilla – Attachment 29744 Details for
Bug 54282
[PATCH] Fix to speed up opening xslx spreadsheets
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch for avoiding repeated calls to size function
patch.txt (text/plain), 796 bytes, created by
Jan
on 2012-12-11 17:52:04 UTC
(
hide
)
Description:
Patch for avoiding repeated calls to size function
Filename:
MIME Type:
Creator:
Jan
Created:
2012-12-11 17:52:04 UTC
Size:
796 bytes
patch
obsolete
>Index: src/ooxml/java/org/apache/poi/xssf/usermodel/helpers/ColumnHelper.java >=================================================================== >--- src/ooxml/java/org/apache/poi/xssf/usermodel/helpers/ColumnHelper.java (revision 1420123) >+++ src/ooxml/java/org/apache/poi/xssf/usermodel/helpers/ColumnHelper.java (working copy) >@@ -112,7 +112,8 @@ > > public CTCols addCleanColIntoCols(CTCols cols, CTCol col) { > boolean colOverlaps = false; >- for (int i = 0; i < cols.sizeOfColArray(); i++) { >+ int sizeOfColArray = cols.sizeOfColArray(); >+ for (int i = 0; i < sizeOfColArray; i++) { > CTCol ithCol = cols.getColArray(i); > long[] range1 = { ithCol.getMin(), ithCol.getMax() }; > long[] range2 = { col.getMin(), col.getMax() };
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 54282
: 29744 |
29745