Skip to content

Commit

Permalink
fixed bugs with computing number of pages wnhen loading imageS
Browse files Browse the repository at this point in the history
  • Loading branch information
Mai Cervantes authored and Mai Cervantes committed Dec 1, 2016
1 parent ec5bbca commit dc4aa3a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ public void run() {
countCursor.close();
}

int numOfPages = (int) Math.ceil(count / pageSize);
int numOfPages = (int) Math.ceil((double)count / pageSize);

for (int page = 0; page < numOfPages; page++) {
if(folder != null && !folder.equals(currentFolder))
Expand Down

0 comments on commit dc4aa3a

Please sign in to comment.