mirror of
https://git.pwmt.org/pwmt/zathura.git
synced 2025-01-30 22:54:55 +01:00
Check zathura_page_render return value correctly
This commit is contained in:
parent
9d87451389
commit
5b54bebc1b
1 changed files with 1 additions and 1 deletions
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);
|
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_destroy(cairo);
|
||||||
cairo_surface_destroy(surface);
|
cairo_surface_destroy(surface);
|
||||||
gdk_threads_leave();
|
gdk_threads_leave();
|
||||||
|
|
Loading…
Reference in a new issue