From 977452b2ba22fbeeea982480569822be62a4151c Mon Sep 17 00:00:00 2001 From: Michael Drake Date: Tue, 28 May 2013 12:47:20 +0100 Subject: Fix handling of clip property to avoid clip rectangles that are entierly outside the redraw region. --- render/html_redraw.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'render') diff --git a/render/html_redraw.c b/render/html_redraw.c index 91df89740..bf6cec692 100644 --- a/render/html_redraw.c +++ b/render/html_redraw.c @@ -2065,8 +2065,8 @@ bool html_redraw_box(const html_content *html, struct box *box, if (r.y0 < clip->y0) r.y0 = clip->y0; if (clip->x1 < r.x1) r.x1 = clip->x1; if (clip->y1 < r.y1) r.y1 = clip->y1; - /* no point trying to draw 0-width/height boxes */ - if (r.x0 == r.x1 || r.y0 == r.y1) + /* Nothing to do for invalid rectangles */ + if (r.x0 >= r.x1 || r.y0 >= r.y1) /* not an error */ return ((!plot->group_end) || (plot->group_end())); /* clip to it */ -- cgit v1.2.3