Revision 1821 branches/FMap_piloto_CAD_Layout_version/libraries/libFMap/src/com/iver/cit/gvsig/fmap/edition/AddGeometryCommand.java

View differences:

AddGeometryCommand.java
12 12
 */
13 13
public class AddGeometryCommand implements Command {
14 14
	private IGeometry geometry;
15
	private int index;
15
	private int[] index=new int[2];
16 16
	private DefaultEditableFeatureSource efs;
17 17
	public AddGeometryCommand(DefaultEditableFeatureSource ef,IGeometry g,int i){
18 18
		efs=ef;
19
		index=i;
19
		index[0]=i;
20 20
		geometry=g;
21 21
	}
22 22
	/**
......
27 27
	 * @see com.iver.cit.gvsig.fmap.edition.Command#undo()
28 28
	 */
29 29
	public void undo() throws DriverIOException, IOException  {
30
		efs.undoAddGeometry(index);
30
		efs.undoAddGeometry(index[0]);
31 31
	}
32 32
	/**
33 33
	 * @throws DriverIOException

Also available in: Unified diff