Skip to content

Commit

Permalink
vaev-layout: fix mixup in table width distribution
Browse files Browse the repository at this point in the history
  • Loading branch information
pauloamed committed Nov 26, 2024
1 parent 70bcb98 commit f22e8d1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/vaev-layout/table.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -682,7 +682,7 @@ struct TableFormatingContext {
if (sumMinColWidths < tableUsedWidth) {
auto toDistribute = tableUsedWidth - sumMinColWidths;
for (auto &w : minColWidth)
w += (toDistribute * w) / sumMaxColWidths;
w += (toDistribute * w) / sumMinColWidths;
}
return {minColWidth, tableUsedWidth};
}
Expand Down

0 comments on commit f22e8d1

Please sign in to comment.