[project @ 2003-11-04 18:35:32 by bursa]

Patch inline container failure on some pages (eg. ebay).

svn path=/import/netsurf/; revision=402
This commit is contained in:
James Bursa 2003-11-04 18:35:32 +00:00
parent 94a175d78a
commit 2b8e469f19

View File

@ -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);