Commit e7cbd25b authored by Marwan Tanager's avatar Marwan Tanager Committed by Sebastian Ramacher

Don't render if the new surface passed to zathura_page_widget_update_surface is NULL.

I don't see any reason for queueing a redraw if the new surface is NULL.
Signed-off-by: Sebastian Ramacher's avatarSebastian Ramacher <sebastian+dev@ramacher.at>
parent 9c150380
......@@ -498,7 +498,9 @@ zathura_page_widget_update_surface(ZathuraPage* widget, cairo_surface_t* surface
priv->surface = surface;
mutex_unlock(&(priv->lock));
/* force a redraw here */
zathura_page_widget_redraw_canvas(widget);
if (priv->surface != NULL) {
zathura_page_widget_redraw_canvas(widget);
}
}
static void
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment