From a673ad21eef94d67d7a768d1b0a48e188e52ad9f Mon Sep 17 00:00:00 2001 From: Michael Drake Date: Mon, 22 Dec 2008 21:57:56 +0000 Subject: Don't apply text decoration if the box isn't text. svn path=/trunk/netsurf/; revision=5921 --- render/html_redraw.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'render') diff --git a/render/html_redraw.c b/render/html_redraw.c index 467f09bd4..d84014496 100644 --- a/render/html_redraw.c +++ b/render/html_redraw.c @@ -1779,6 +1779,8 @@ bool html_redraw_text_decoration_inline(struct box *box, int x, int y, for (c = box->next; c && c != box->inline_end; c = c->next) { + if (c->type != BOX_TEXT) + continue; if (!plot.line((x + c->x) * scale, (y + c->y + c->height * ratio) * scale, (x + c->x + c->width) * scale, -- cgit v1.2.3