From 2b8e469f1904ed978e02dfb2cfb22fe9ff785a92 Mon Sep 17 00:00:00 2001 From: James Bursa Date: Tue, 4 Nov 2003 18:35:32 +0000 Subject: [project @ 2003-11-04 18:35:32 by bursa] Patch inline container failure on some pages (eg. ebay). svn path=/import/netsurf/; revision=402 --- render/layout.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/render/layout.c b/render/layout.c index ea3ea06b7..4dc3c335e 100644 --- a/render/layout.c +++ b/render/layout.c @@ -459,7 +459,9 @@ struct box * layout_line(struct box * first, unsigned long width, unsigned long x1 - x0 - x - space_before, &w); LOG(("'%.*s' %lu %u (%c) %u", (int) c->length, c->text, (unsigned long) (x1 - x0), space - c->text, *space, w)); - assert(space != c->text); +/* assert(space != c->text); */ + if (space == c->text) + space = c->text + 1; c2 = memcpy(xcalloc(1, sizeof(struct box)), c, sizeof(struct box)); c2->text = xstrdup(space + 1); c2->length = c->length - ((space + 1) - c->text); @@ -1030,7 +1032,7 @@ void calculate_table_widths(struct box *table) extra = 0; for (j = 0; j != cell->columns; j++) { if (col[i + j].type != COLUMN_WIDTH_FIXED) { - col[i + j].width = col[i + j].max = + col[i + j].width = col[i + j].max = col[i + j].min += extra; col[i + j].type = COLUMN_WIDTH_FIXED; } -- cgit v1.2.3