Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
pwmt
zathura
Commits
60523c55
Commit
60523c55
authored
Feb 08, 2012
by
Moritz Lipp
Browse files
Fix current page number check
parent
6fb95bc6
Changes
1
Hide whitespace changes
Inline
Side-by-side
document.c
View file @
60523c55
...
...
@@ -304,9 +304,9 @@ 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
>
document
->
number_of_pages
)
{
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 */
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment