Revision 4115 trunk/libraries/libFMap/src/com/iver/cit/gvsig/fmap/edition/MemoryExpansionFile.java

View differences:

MemoryExpansionFile.java
64 64
	 * @see com.iver.cit.gvsig.fmap.edition.ExpansionFile#addRow(IRow)
65 65
	 */
66 66
	public int addRow(IRow row) throws IOException {
67
		int newIndex = rows.size();
67 68
		IRowEdited edRow = new DefaultRowEdited(row,
68
				IRowEdited.STATUS_ADDED);
69
				IRowEdited.STATUS_ADDED, newIndex);
69 70
		rows.add(edRow);
70 71

  
71
		return rows.size() - 1;
72
		return newIndex;
72 73
	}
73 74

  
74 75
	/**
......
83 84
*/
84 85
		//invalidateRow(index);
85 86
		IRowEdited edRow = new DefaultRowEdited(row,
86
				IRowEdited.STATUS_MODIFIED);
87
				IRowEdited.STATUS_MODIFIED, index);
87 88

  
88 89
		rows.add(edRow);
89 90

  

Also available in: Unified diff