diff options
author | Thomas White <taw@bitwiz.org.uk> | 2013-03-09 22:17:09 +0100 |
---|---|---|
committer | Thomas White <taw@bitwiz.org.uk> | 2013-03-09 22:17:09 +0100 |
commit | 6d76648ad4438692bc5bcebbb82cac4fe261597b (patch) | |
tree | 16c1c64aa5c3d93f6e85052183f5979b328fbe77 | |
parent | ea571741f1c90ceee380a02a2e4320d54a3e0b62 (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...
-rw-r--r-- | src/wrap.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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++; |