summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Drake <tlsa@netsurf-browser.org>2008-01-27 22:25:11 +0000
committerMichael Drake <tlsa@netsurf-browser.org>2008-01-27 22:25:11 +0000
commit48bdeb34c87d2124ce0bfbd885e14b1bb1695ce2 (patch)
tree6a9bdda5d7b881f3b38a4209cbba3b0da219bba3
parentfcd30e0819215ddb68bd1bc189189a0d24a93d1b (diff)
downloadnetsurf-48bdeb34c87d2124ce0bfbd885e14b1bb1695ce2.tar.gz
netsurf-48bdeb34c87d2124ce0bfbd885e14b1bb1695ce2.tar.bz2
Ensure images within inline-blocks are shown properly. Fixed by zamez.
svn path=/trunk/netsurf/; revision=3783
-rw-r--r--render/layout.c2
1 files changed, 1 insertions, 1 deletions
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 +