Stop redrawing zero size images.

svn path=/trunk/netsurf/; revision=10614
This commit is contained in:
Michael Drake 2010-07-08 19:53:53 +00:00
parent c77552d9f8
commit 1fb697782a
1 changed files with 1 additions and 1 deletions

View File

@ -647,7 +647,7 @@ bool html_redraw_box(struct box *box,
scale, current_background_color))
return false;
if (box->object) {
if (box->object && width != 0 && height != 0) {
x_scrolled = x - scroll_get_offset(box->scroll_x) * scale;
y_scrolled = y - scroll_get_offset(box->scroll_y) * scale;
if (!content_redraw(box->object,