Don't apply text decoration if the box isn't text.

svn path=/trunk/netsurf/; revision=5921
This commit is contained in:
Michael Drake 2008-12-22 21:57:56 +00:00
parent fe355fc087
commit a673ad21ee

View File

@ -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,