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

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 <>
parent 9c150380
......@@ -498,7 +498,9 @@ zathura_page_widget_update_surface(ZathuraPage* widget, cairo_surface_t* surface
priv->surface = surface;
/* force a redraw here */
if (priv->surface != NULL) {
static void
Supports Markdown
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