Commit 0767aa85 authored by Sebastian Ramacher's avatar Sebastian Ramacher
Browse files

some error checking for zathura_page_get

parent 65d2241e
......@@ -513,6 +513,12 @@ zathura_page_get(zathura_document_t* document, unsigned int page_id, zathura_plu
page->number = page_id;
page->visible = false;
page->drawing_area = zathura_page_widget_new(page);
if (page->drawing_area == NULL) {
girara_error("couldn't create page widget");
return NULL;
page->document = document;
unsigned int page_height = 0;
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