Browse Source

REPORT-34112 改进

research/11.0
Hugh.C 5 years ago
parent
commit
5adfbcee15
  1. 2
      fine-itext/src/main/java/com/fr/third/v2/lowagie/text/pdf/PdfPTable.java

2
fine-itext/src/main/java/com/fr/third/v2/lowagie/text/pdf/PdfPTable.java

@ -539,7 +539,7 @@ public class PdfPTable implements LargeElement {
* @param indexList 要设置的列索引List * @param indexList 要设置的列索引List
*/ */
private void fillAbsoluteWidths(float[] colWidths, ArrayList<Integer> indexList) { private void fillAbsoluteWidths(float[] colWidths, ArrayList<Integer> indexList) {
for (int i = 0; i < indexList.size() && i < absoluteWidths.length; i++) { for (int i = 0; i < indexList.size() && indexList.get(i) < absoluteWidths.length; i++) {
Integer index = indexList.get(i); Integer index = indexList.get(i);
absoluteWidths[index] = colWidths[index]; absoluteWidths[index] = colWidths[index];
} }

Loading…
Cancel
Save