Fix scroll_wrap logic on first and last page. (Closes #52)

Thanks egl209 for the patch.
This commit is contained in:
Sebastian Ramacher 2011-08-25 00:57:56 +02:00
parent 5ce01cefe8
commit 42673a8474

View File

@ -2320,7 +2320,7 @@ sc_scroll(Argument* argument)
Argument arg; Argument arg;
arg.n = PREVIOUS; arg.n = PREVIOUS;
sc_navigate(&arg); sc_navigate(&arg);
if (!scroll_wrap || (Zathura.PDF.page_number < old_page)) if (scroll_wrap || (Zathura.PDF.page_number < old_page))
{ {
arg.n = BOTTOM; arg.n = BOTTOM;
ss = TRUE; ss = TRUE;