diff options
author | Michael Drake <tlsa@netsurf-browser.org> | 2013-05-28 12:47:20 +0100 |
---|---|---|
committer | Michael Drake <tlsa@netsurf-browser.org> | 2013-05-28 12:47:20 +0100 |
commit | 977452b2ba22fbeeea982480569822be62a4151c (patch) | |
tree | e41c8c11e1d9b7831e0f5acd13a92a8a6da353c0 /render | |
parent | ba9769bc8c22c49fe1be6536d4684661ea2e079b (diff) | |
download | netsurf-977452b2ba22fbeeea982480569822be62a4151c.tar.gz netsurf-977452b2ba22fbeeea982480569822be62a4151c.tar.bz2 |
Fix handling of clip property to avoid clip rectangles that are entierly outside the redraw region.
Diffstat (limited to 'render')
-rw-r--r-- | render/html_redraw.c | 4 |
1 files changed, 2 insertions, 2 deletions
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 */ |