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
Marius
zathura
Commits
3d96d440
Commit
3d96d440
authored
Jun 23, 2014
by
Sebastian Ramacher
Browse files
Bound returned page by number of pages - 1
Closes: #404 Signed-off-by:
Sebastian Ramacher
<
sebastian+dev@ramacher.at
>
parent
aaa54673
Changes
1
Hide whitespace changes
Inline
Side-by-side
adjustment.c
View file @
3d96d440
...
...
@@ -81,7 +81,7 @@ position_to_page_number(zathura_document_t* document, double pos_x,
if
(
page
<
c0
-
1
)
{
return
0
;
}
else
{
return
page
-
(
c0
-
1
);
return
MIN
(
page
-
(
c0
-
1
),
npag
-
1
);
}
}
...
...
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