[gs-commits] mupdf 1.16.1.5 Bug 701402: x11: Allow smart scroll to adv
[email protected] (Sebastian Rasmussen)
| Newsgroups | gmane.comp.printing.ghostscript.cvs |
|---|---|
| Message-ID | <[email protected]> |
commit 606fcf8383943d7f986d6706f1cb67fbdab0e224 Author: Sebastian Rasmussen <[email protected]> Date: Tue Aug 6 18:09:16 2019 +0200 Bug 701402: x11: Allow smart scroll to advance to last page of document. diff --git a/platform/x11/pdfapp.c b/platform/x11/pdfapp.c index 74d4f5d..ee416e0 100644 --- a/platform/x11/pdfapp.c +++ b/platform/x11/pdfapp.c @@ -1503,7 +1503,7 @@ void pdfapp_onkey(pdfapp_t *app, int c, int modifiers) { if (app->imgw + app->panx <= app->winw) { - if (app->pageno + 1 < app->pagecount) + if (app->pageno + 1 <= app->pagecount) { app->panx = 0; app->pany = 0; http://git.ghostscript.com/?p=mupdf.git;a=commit;h=606fcf8383943d7f986d6706f1cb67fbdab0e224 -- MuPDF library Artifex Software, Inc.