Check zathura_page_render return value correctly

This commit is contained in:
Moritz Lipp 2012-02-08 01:08:23 +01:00
parent 9d87451389
commit 5b54bebc1b

View File

@ -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();