getTo() in NavigatorLabel is off by one
---------------------------------------
Key: WICKET-801
URL: https://issues.apache.org/jira/browse/WICKET-801
Project: Wicket
Issue Type: Bug
Components: wicket-extensions
Reporter: Kent Tong
Priority: Minor
Fix For: 1.3.0-beta2
The code of getTo() is:
public int getTo()
{
if (getOf() == 0)
{
return 0;
}
return Math.min(getOf(), getFrom() +
table.getRowsPerPage());
}
It should really be:
public int getTo()
{
if (getOf() == 0)
{
return 0;
}
return Math.min(getOf(), getFrom() +
table.getRowsPerPage()-1);
}
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.