summaryrefslogtreecommitdiff
path: root/render
diff options
context:
space:
mode:
authorJames Bursa <james@netsurf-browser.org>2006-02-04 12:02:06 +0000
committerJames Bursa <james@netsurf-browser.org>2006-02-04 12:02:06 +0000
commit2ef092f54652399ac3c016f8d7e435fd8e199487 (patch)
treec35ba8d214d6973c048767df3427f99258cdae0b /render
parent8823544009f8278271d92d2af290ee1919ab9ecc (diff)
downloadnetsurf-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')
-rw-r--r--render/html_redraw.c4
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,