Commit 5b54bebc authored by Moritz Lipp's avatar Moritz Lipp
Browse files

Check zathura_page_render return value correctly

parent 9d874513
......@@ -194,7 +194,7 @@ render(zathura_t* zathura, zathura_page_t* page)
cairo_scale(cairo, zathura->document->scale, zathura->document->scale);
}
if (zathura_page_render(page, cairo, false) == false) {
if (zathura_page_render(page, cairo, false) != ZATHURA_PLUGIN_ERROR_OK) {
cairo_destroy(cairo);
cairo_surface_destroy(surface);
gdk_threads_leave();
......
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