From f4f918f9a69f84825ff246860d2370a2c02a2544 Mon Sep 17 00:00:00 2001 From: Heng Sin Low Date: Mon, 15 Jan 2007 04:26:51 +0000 Subject: [PATCH] * changedcolumn wrongly initialise to zero, i.e if no column is change the datastatusevent will always report that ad_client_id ( column 0 ) had changed. --- base/src/org/compiere/model/DataStatusEvent.java | 2 +- base/src/org/compiere/model/GridTab.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/base/src/org/compiere/model/DataStatusEvent.java b/base/src/org/compiere/model/DataStatusEvent.java index cb708fe8cc..53573c93a8 100644 --- a/base/src/org/compiere/model/DataStatusEvent.java +++ b/base/src/org/compiere/model/DataStatusEvent.java @@ -63,7 +63,7 @@ public final class DataStatusEvent extends EventObject implements Serializable private int m_loadedRows = -1; private int m_currentRow = -1; // - private int m_changedColumn = 0; + private int m_changedColumn = -1; private String m_columnName = null; /** Created */ diff --git a/base/src/org/compiere/model/GridTab.java b/base/src/org/compiere/model/GridTab.java index 41d1fb9295..2ef7c27e8b 100644 --- a/base/src/org/compiere/model/GridTab.java +++ b/base/src/org/compiere/model/GridTab.java @@ -2182,7 +2182,7 @@ public class GridTab implements DataStatusListener, Evaluatee, Serializable */ public GridField getField (int index) { - return m_mTable.getField(index); + return (index >= 0 ? m_mTable.getField(index) : null); } // getField /**