Stop redrawing zero size images.
svn path=/trunk/netsurf/; revision=10614
This commit is contained in:
parent
c77552d9f8
commit
1fb697782a
|
@ -647,7 +647,7 @@ bool html_redraw_box(struct box *box,
|
||||||
scale, current_background_color))
|
scale, current_background_color))
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
if (box->object) {
|
if (box->object && width != 0 && height != 0) {
|
||||||
x_scrolled = x - scroll_get_offset(box->scroll_x) * scale;
|
x_scrolled = x - scroll_get_offset(box->scroll_x) * scale;
|
||||||
y_scrolled = y - scroll_get_offset(box->scroll_y) * scale;
|
y_scrolled = y - scroll_get_offset(box->scroll_y) * scale;
|
||||||
if (!content_redraw(box->object,
|
if (!content_redraw(box->object,
|
||||||
|
|
Loading…
Reference in New Issue