Skip to content

Commit

Permalink
Fix #47
Browse files Browse the repository at this point in the history
  • Loading branch information
MinusKube committed Mar 14, 2019
1 parent 25afe94 commit e1d4702
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/fr/minuskube/inv/content/Pagination.java
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ public boolean isFirst() {
@Override
public boolean isLast() {
int pageCount = (int) Math.ceil((double) this.items.length / this.itemsPerPage);
return this.currentPage == pageCount - 1;
return this.currentPage >= pageCount - 1;
}

@Override
Expand Down

0 comments on commit e1d4702

Please sign in to comment.