summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Drake <tlsa@netsurf-browser.org>2008-12-22 21:57:56 +0000
committerMichael Drake <tlsa@netsurf-browser.org>2008-12-22 21:57:56 +0000
commita673ad21eef94d67d7a768d1b0a48e188e52ad9f (patch)
tree354004a3b38d182ed153e3fce1ccb511e4840d87
parentfe355fc08752b39da40fa41eb7be9b4d45f8533f (diff)
downloadnetsurf-a673ad21eef94d67d7a768d1b0a48e188e52ad9f.tar.gz
netsurf-a673ad21eef94d67d7a768d1b0a48e188e52ad9f.tar.bz2
Don't apply text decoration if the box isn't text.
svn path=/trunk/netsurf/; revision=5921
-rw-r--r--render/html_redraw.c2
1 files changed, 2 insertions, 0 deletions
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,