From 48bdeb34c87d2124ce0bfbd885e14b1bb1695ce2 Mon Sep 17 00:00:00 2001 From: Michael Drake Date: Sun, 27 Jan 2008 22:25:11 +0000 Subject: [PATCH] Ensure images within inline-blocks are shown properly. Fixed by zamez. svn path=/trunk/netsurf/; revision=3783 --- render/layout.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/render/layout.c b/render/layout.c index 39f7a8995..d00cf6af4 100644 --- a/render/layout.c +++ b/render/layout.c @@ -1078,7 +1078,7 @@ bool layout_line(struct box *first, int *width, int *y, x += space_after; if (b->type == BOX_INLINE_BLOCK) { - if (b->width == UNKNOWN_WIDTH) + if (b->max_width != UNKNOWN_WIDTH) if (!layout_float(b, *width, content)) return false; h = b->border[TOP] + b->padding[TOP] + b->height +