1
0
Fork 0
mirror of https://git.pwmt.org/pwmt/zathura.git synced 2025-02-08 14:24:55 +01:00

Fix current page number check

This commit is contained in:
Moritz Lipp 2012-02-08 23:37:34 +01:00
parent 6fb95bc6cb
commit 60523c5506

View file

@ -304,9 +304,9 @@ zathura_document_open(zathura_t* zathura, const char* path, const char* password
} }
/* check current page number */ /* check current page number */
if (document->current_page_number < 1 || document->current_page_number > document->number_of_pages) { if (document->current_page_number > document->number_of_pages) {
girara_warning("document info: '%s' has an invalid page number", document->file_path); girara_warning("document info: '%s' has an invalid page number", document->file_path);
document->current_page_number = 1; document->current_page_number = 0;
} }
/* update statusbar */ /* update statusbar */