From d3a5e7251db1e09846affde32f3a202f762d2da7 Mon Sep 17 00:00:00 2001 From: James Bursa Date: Sun, 14 Aug 2005 21:43:36 +0000 Subject: [project @ 2005-08-14 21:43:36 by bursa] Fix box_contains_point() for non-rectangular inlines. svn path=/import/netsurf/; revision=1846 --- render/box.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/render/box.c b/render/box.c index e871b866b..37fc6f1d0 100644 --- a/render/box.c +++ b/render/box.c @@ -352,7 +352,8 @@ siblings: bool box_contains_point(struct box *box, int x, int y) { - if (box->style && box->style->overflow != CSS_OVERFLOW_VISIBLE) { + if ((box->style && box->style->overflow != CSS_OVERFLOW_VISIBLE) || + box->inline_end) { if (box->x <= x + box->border[LEFT] && x < box->x + box->padding[LEFT] + box->width + box->border[RIGHT] + box->padding[RIGHT] && -- cgit v1.2.3