IDEMPIERE-2742:Record repeated in info window

This commit is contained in:
hieplq 2015-07-29 19:33:59 +08:00
parent d4b9295e70
commit e5ee78c374
1 changed files with 4 additions and 4 deletions

View File

@ -619,11 +619,11 @@ public abstract class InfoPanel extends Window implements EventListener<Event>,
}
else
{
if (end >= cacheEnd || end <= 0)
if (end > cacheEnd || end <= 0)
{
end = cacheEnd-1;
end = cacheEnd;
}
return line.subList(start, end+1);
return line.subList(start, end);
}
}
@ -1344,7 +1344,7 @@ public abstract class InfoPanel extends Window implements EventListener<Event>,
int start = pageNo * pageSize;
int end = start + pageSize;
if (end >= m_count)
end = m_count - 1;
end = m_count;
List<Object> subList = readLine(start, end);
model = new ListModelTable(subList);
model.setSorter(this);