summaryrefslogtreecommitdiff
path: root/render
diff options
context:
space:
mode:
authorJames Bursa <james@netsurf-browser.org>2005-08-14 21:43:36 +0000
committerJames Bursa <james@netsurf-browser.org>2005-08-14 21:43:36 +0000
commitd3a5e7251db1e09846affde32f3a202f762d2da7 (patch)
tree303a264fcb0b2d1d50a77003d69517e55457b955 /render
parent7a981bb70a1f23fffe51b023add3322e8a59d716 (diff)
downloadnetsurf-d3a5e7251db1e09846affde32f3a202f762d2da7.tar.gz
netsurf-d3a5e7251db1e09846affde32f3a202f762d2da7.tar.bz2
[project @ 2005-08-14 21:43:36 by bursa]
Fix box_contains_point() for non-rectangular inlines. svn path=/import/netsurf/; revision=1846
Diffstat (limited to 'render')
-rw-r--r--render/box.c3
1 files changed, 2 insertions, 1 deletions
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] &&