mirror of
https://git.pwmt.org/pwmt/zathura.git
synced 2024-11-10 18:03:47 +01:00
Check zathura_page_render return value correctly
This commit is contained in:
parent
9d87451389
commit
5b54bebc1b
2
render.c
2
render.c
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user