* 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.

This commit is contained in:
Heng Sin Low 2007-01-15 04:26:51 +00:00
parent 51b350252e
commit f4f918f9a6
2 changed files with 2 additions and 2 deletions

View File

@ -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 */

View File

@ -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
/**