From d399f565ed7789464e0d2627fa3c391dec872905 Mon Sep 17 00:00:00 2001 From: Michael Drake Date: Tue, 23 Apr 2013 18:34:46 +0100 Subject: Fix abort of page render on failed content_redraw of background image. --- render/html_redraw.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'render/html_redraw.c') diff --git a/render/html_redraw.c b/render/html_redraw.c index 1abe14375..91df89740 100644 --- a/render/html_redraw.c +++ b/render/html_redraw.c @@ -1482,9 +1482,9 @@ static bool html_redraw_background(int x, int y, struct box *box, float scale, bg_data.repeat_x = repeat_x; bg_data.repeat_y = repeat_y; - if (!content_redraw(background->background, - &bg_data, &r, ctx)) - return false; + /* We just continue if redraw fails */ + content_redraw(background->background, + &bg_data, &r, ctx); } } @@ -1634,8 +1634,8 @@ static bool html_redraw_inline_background(int x, int y, struct box *box, bg_data.repeat_x = repeat_x; bg_data.repeat_y = repeat_y; - if (!content_redraw(box->background, &bg_data, &r, ctx)) - return false; + /* We just continue if redraw fails */ + content_redraw(box->background, &bg_data, &r, ctx); } } -- cgit v1.2.3