diff options
author | James Bursa <james@netsurf-browser.org> | 2006-02-04 12:02:06 +0000 |
---|---|---|
committer | James Bursa <james@netsurf-browser.org> | 2006-02-04 12:02:06 +0000 |
commit | 2ef092f54652399ac3c016f8d7e435fd8e199487 (patch) | |
tree | c35ba8d214d6973c048767df3427f99258cdae0b /render/html_redraw.c | |
parent | 8823544009f8278271d92d2af290ee1919ab9ecc (diff) | |
download | netsurf-2ef092f54652399ac3c016f8d7e435fd8e199487.tar.gz netsurf-2ef092f54652399ac3c016f8d7e435fd8e199487.tar.bz2 |
[project @ 2006-02-04 12:02:06 by bursa]
Fix text-decorations for empty elements (fixes 1398172).
svn path=/import/netsurf/; revision=2055
Diffstat (limited to 'render/html_redraw.c')
-rw-r--r-- | render/html_redraw.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/render/html_redraw.c b/render/html_redraw.c index 9346445c1..df7d5bfbb 100644 --- a/render/html_redraw.c +++ b/render/html_redraw.c @@ -426,7 +426,7 @@ bool html_redraw_text_box(struct box *box, int x, int y, } /* draw any text preceding highlighted portion */ - if (start_idx > 0 && + if (start_idx > 0 && !plot.text(x, y + (int) (box->height * 0.75 * scale), box->style, box->text, start_idx, current_background_color, @@ -1071,6 +1071,8 @@ bool html_redraw_text_decoration(struct box *box, colour = html_redraw_aa(background_colour, box->style->color); if (box->type == BOX_INLINE) { + if (!box->inline_end) + return true; for (i = 0; i != NOF_ELEMENTS(decoration); i++) if (box->style->text_decoration & decoration[i]) if (!html_redraw_text_decoration_inline(box, |