From edf686bf9c0d3196db09ae9a62a442de0409941c Mon Sep 17 00:00:00 2001 From: James Bursa Date: Thu, 26 Dec 2002 23:02:38 +0000 Subject: [project @ 2002-12-26 23:02:38 by bursa] Text layout changes for re-rendering. svn path=/import/netsurf/; revision=58 --- render/layout.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'render') diff --git a/render/layout.c b/render/layout.c index fbbca36a4..d12c1f555 100644 --- a/render/layout.c +++ b/render/layout.c @@ -1,5 +1,5 @@ /** - * $Id: layout.c,v 1.22 2002/12/23 22:31:28 bursa Exp $ + * $Id: layout.c,v 1.23 2002/12/26 23:02:38 bursa Exp $ */ #include @@ -382,11 +382,11 @@ struct box * layout_line(struct box * first, unsigned long width, unsigned long c2->length = c->length - ((space + 1) - c->text); c2->width = UNKNOWN_WIDTH; c->length = space + 1 - c->text; + c->width = wp + 4; /* should be the width of a space */ c2->next = c->next; c->next = c2; b = c2; } - c->width = wp; x = xp + wp; /* fprintf(stderr, "layout_line: overflow, forcing\n"); */ } else if (x1 - x0 < xp + w) { @@ -407,7 +407,7 @@ struct box * layout_line(struct box * first, unsigned long width, unsigned long c2->next = c->next; c->next = c2; b = c2; - c->width = wp; + c->width = wp + 4; /* should be the width of a space */ x = xp + wp; /* fprintf(stderr, "layout_line: overflow, fit\n"); */ } -- cgit v1.2.3