mirror of
https://git.pwmt.org/pwmt/zathura.git
synced 2025-02-27 14:34:39 +01:00
off by one
This commit is contained in:
parent
f4f24fe0cc
commit
a5829b87ef
1 changed files with 1 additions and 1 deletions
|
@ -276,7 +276,7 @@ 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 < 1 || 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 = 1;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue