aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/wrap.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/wrap.c b/src/wrap.c
index 10c225d..658d201 100644
--- a/src/wrap.c
+++ b/src/wrap.c
@@ -608,8 +608,10 @@ static void knuth_suboptimal_fit(struct wrap_line *boxes, double line_length,
sigma += boxes->boxes[k+1].width;
sigma += sp_x(boxes->boxes[k].space);
+ sigma_max += boxes->boxes[k+1].width;
sigma_max += sp_yp(boxes->boxes[k].space, rho);
+ sigma_min += boxes->boxes[k+1].width;
sigma_min += sp_zp(boxes->boxes[k].space);
k++;