summaryrefslogtreecommitdiff
path: root/render/layout.c
diff options
context:
space:
mode:
authorJames Bursa <james@netsurf-browser.org>2003-11-04 18:35:32 +0000
committerJames Bursa <james@netsurf-browser.org>2003-11-04 18:35:32 +0000
commit2b8e469f1904ed978e02dfb2cfb22fe9ff785a92 (patch)
treeba90a6d8ebe1555df89f147ecb37ae8380589843 /render/layout.c
parent94a175d78a09698512557d7bdc481fe334a3acf5 (diff)
downloadnetsurf-2b8e469f1904ed978e02dfb2cfb22fe9ff785a92.tar.gz
netsurf-2b8e469f1904ed978e02dfb2cfb22fe9ff785a92.tar.bz2
[project @ 2003-11-04 18:35:32 by bursa]
Patch inline container failure on some pages (eg. ebay). svn path=/import/netsurf/; revision=402
Diffstat (limited to 'render/layout.c')
-rw-r--r--render/layout.c6
1 files 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;
}