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:
parent
6fb95bc6cb
commit
60523c5506
1 changed files with 2 additions and 2 deletions
|
@ -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 */
|
||||||
|
|
Loading…
Reference in a new issue