From 6d76648ad4438692bc5bcebbb82cac4fe261597b Mon Sep 17 00:00:00 2001 From: Thomas White Date: Sat, 9 Mar 2013 22:17:09 +0100 Subject: Add width to sigma_min and sigma_max REALLY not sure about this, but only because it's not what's in the paper... --- src/wrap.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/wrap.c') 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++; -- cgit v1.2.3