Skip to content

Commit 43466a6

Browse files
committed
Fix typo
DEVSIX-1252
1 parent e96cd7b commit 43466a6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

layout/src/main/java/com/itextpdf/layout/renderer/TableWidths.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,7 @@ float[] autoLayout() {
262262
for (int i = 0; i < widths.length; i++) {
263263
if (widths[i].isPercent) {
264264
if (sumOfPercents < 100 && sumOfPercents + widths[i].width > 100) {
265-
widths[i].width = sumOfPercents - 100;
265+
widths[i].width = 100 - sumOfPercents;
266266
sumOfPercents += widths[i].width;
267267
warn100percent();
268268
} else if (sumOfPercents >= 100) {

0 commit comments

Comments
 (0)