Skip to content
This repository was archived by the owner on Nov 10, 2025. It is now read-only.

Commit 8259993

Browse files
committed
Merge branch 'lzwandnju-master'
2 parents 9dba197 + 12f1745 commit 8259993

File tree

1 file changed

+4
-0
lines changed
  • android-pdf-viewer/src/main/java/com/github/barteksc/pdfviewer

1 file changed

+4
-0
lines changed

android-pdf-viewer/src/main/java/com/github/barteksc/pdfviewer/PDFView.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1019,6 +1019,10 @@ ScrollDir getScrollDir() {
10191019
}
10201020

10211021
void loadPageByOffset() {
1022+
if (0 == getPageCount()) {
1023+
return;
1024+
}
1025+
10221026
float offset, optimal, screenCenter;
10231027
float spacingPerPage = spacingPx - (spacingPx / getPageCount());
10241028
if (swipeVertical) {

0 commit comments

Comments
 (0)