diff options
-rw-r--r-- | android/src/com/artifex/mupdf/MuPDFActivity.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/android/src/com/artifex/mupdf/MuPDFActivity.java b/android/src/com/artifex/mupdf/MuPDFActivity.java index fb3c4552..c530b01b 100644 --- a/android/src/com/artifex/mupdf/MuPDFActivity.java +++ b/android/src/com/artifex/mupdf/MuPDFActivity.java @@ -305,7 +305,7 @@ public class MuPDFActivity extends Activity makeButtonsView(); // Set up the page slider - int smax = core.countPages()-1; + int smax = Math.max(core.countPages()-1,1); mPageSliderRes = ((10 + smax - 1)/smax) * 2; // Set the file-name text |