diff options
Diffstat (limited to 'render/html_redraw.c')
-rw-r--r-- | render/html_redraw.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/render/html_redraw.c b/render/html_redraw.c index e604e28d8..7d1626960 100644 --- a/render/html_redraw.c +++ b/render/html_redraw.c @@ -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, |