mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-11-23 23:09:39 +03:00
Don't apply text decoration if the box isn't text.
svn path=/trunk/netsurf/; revision=5921
This commit is contained in:
parent
fe355fc087
commit
a673ad21ee
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user