From 0b95ab7cd12aa93dfc3d6dec052676e8251ea224 Mon Sep 17 00:00:00 2001 From: Heng Sin Low Date: Mon, 3 Dec 2012 15:26:13 +0800 Subject: [PATCH] IDEMPIERE-496 Exception when changing Organization Info. Fixed wrong max row comparison in previous revision. --- org.adempiere.base/src/org/compiere/model/GridTable.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/org.adempiere.base/src/org/compiere/model/GridTable.java b/org.adempiere.base/src/org/compiere/model/GridTable.java index ecb4e4909e..95f2a31a37 100644 --- a/org.adempiere.base/src/org/compiere/model/GridTable.java +++ b/org.adempiere.base/src/org/compiere/model/GridTable.java @@ -3405,7 +3405,7 @@ public class GridTable extends AbstractTableModel try { m_pstmt = DB.prepareStatement(m_SQL, trxName); - if (this.maxRows > 0 && rows > this.maxRows) + if (this.maxRows > 0 && rows == this.maxRows) { m_pstmt.setMaxRows(this.maxRows); }