aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorThomas White <taw@bitwiz.org.uk>2013-03-09 22:17:09 +0100
committerThomas White <taw@bitwiz.org.uk>2013-03-09 22:17:09 +0100
commit6d76648ad4438692bc5bcebbb82cac4fe261597b (patch)
tree16c1c64aa5c3d93f6e85052183f5979b328fbe77 /src
parentea571741f1c90ceee380a02a2e4320d54a3e0b62 (diff)
Add width to sigma_min and sigma_max
REALLY not sure about this, but only because it's not what's in the paper...
Diffstat (limited to 'src')
-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++;