From e5ee78c374a841754cf9b31611e7bb290476dd0d Mon Sep 17 00:00:00 2001 From: hieplq Date: Wed, 29 Jul 2015 19:33:59 +0800 Subject: [PATCH] IDEMPIERE-2742:Record repeated in info window --- .../WEB-INF/src/org/adempiere/webui/panel/InfoPanel.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/panel/InfoPanel.java b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/panel/InfoPanel.java index 200d07da46..f440765828 100644 --- a/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/panel/InfoPanel.java +++ b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/panel/InfoPanel.java @@ -619,11 +619,11 @@ public abstract class InfoPanel extends Window implements EventListener, } 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, int start = pageNo * pageSize; int end = start + pageSize; if (end >= m_count) - end = m_count - 1; + end = m_count; List subList = readLine(start, end); model = new ListModelTable(subList); model.setSorter(this);