aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas White <taw@bitwiz.org.uk>2014-09-23 23:01:07 +0200
committerThomas White <taw@bitwiz.org.uk>2014-09-23 23:01:07 +0200
commitf85f70bf722314ef22c881b6b755e1ea3443f9f7 (patch)
treeee7a6c13c6ed81f4def5fb814d17b0fabac70e97
parent7e2b280ac606cf69461df4da7aea3973b80cbabb (diff)
Space all boxes
-rw-r--r--src/wrap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/wrap.c b/src/wrap.c
index 83e0e5c..b80b580 100644
--- a/src/wrap.c
+++ b/src/wrap.c
@@ -748,7 +748,7 @@ static void knuth_suboptimal_fit(struct wrap_line *boxes, double line_length,
static void space_line_ragged(struct wrap_line *line, double l)
{
int i;
- for ( i=0; i<line->n_boxes-1; i++ ) {
+ for ( i=0; i<line->n_boxes; i++ ) {
line->boxes[i].sp = sp_x(line->boxes[i].space);
}
}