From 8a223ef1b2109a4ca40e503ba8d8e00cb0457ec8 Mon Sep 17 00:00:00 2001 From: Michael Drake Date: Tue, 22 Feb 2011 22:07:28 +0000 Subject: Fix text clipping bug. svn path=/trunk/netsurf/; revision=11763 --- render/html_redraw.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'render/html_redraw.c') diff --git a/render/html_redraw.c b/render/html_redraw.c index 383bf287e..10b2679aa 100644 --- a/render/html_redraw.c +++ b/render/html_redraw.c @@ -409,7 +409,8 @@ bool html_redraw_box(struct box *box, int x_parent, int y_parent, if (!plot.clip(&r)) return false; } else { - /* clip box unchanged */ + /* clip box is fine, clip to it */ + if (!plot.clip(&r)) r = *clip; } @@ -722,9 +723,8 @@ bool html_redraw_box(struct box *box, int x_parent, int y_parent, y_parent + box->y, clip, scale); } - if (box->type == BOX_BLOCK || box->type == BOX_INLINE_BLOCK || - box->type == BOX_TABLE_CELL || box->object) + box->type == BOX_TABLE_CELL || box->type == BOX_INLINE) if (!plot.clip(clip)) return false; -- cgit v1.2.3