Skip to content

Commit 2e9bb6c

Browse files
author
li_zhe-pc
committed
fix the bug that the viewer will crash when the function---getPageCount equals zero while pdf file is loading
1 parent 868cc82 commit 2e9bb6c

File tree

1 file changed

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

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1005,7 +1005,7 @@ ScrollDir getScrollDir() {
10051005
}
10061006

10071007
void loadPageByOffset() {
1008-
if(0==getPageCount()){
1008+
if(0 == getPageCount()){
10091009
return ;
10101010
}
10111011
float offset, optimal, screenCenter;

0 commit comments

Comments
 (0)