Commit a5829b87 authored by Sebastian Ramacher's avatar Sebastian Ramacher

off by one

parent f4f24fe0
......@@ -276,7 +276,7 @@ zathura_document_open(zathura_t* zathura, const char* path, const char* password
}
/* check current page number */
if (document->current_page_number < 1 || document->current_page_number >= document->number_of_pages) {
if (document->current_page_number < 1 || document->current_page_number > document->number_of_pages) {
girara_warning("document info: '%s' has an invalid page number", document->file_path);
document->current_page_number = 1;
}
......
Markdown is supported
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