Revision 1710

View differences:

branches/pilotoDWG/applications/appgvSIG/src/com/iver/cit/gvsig/gui/cad/tools/SelectionCadTool.java
246 246
						selectedGeometries.set(indexes[i], true);
247 247
					}
248 248
				}else{
249
					if (rect.intersects(editingSource.getGeometry(indexes[i])
250
							   .getBounds2D())) {
249
					if (editingSource.getGeometry(indexes[i]).intersects(rect)){
251 250
						selectedGeometries.set(indexes[i], true);
252 251
					}
253 252
				}
branches/pilotoDWG/libraries/libFMap/src/com/iver/cit/gvsig/fmap/edition/AddGeometryCommand.java
35 35
	 * @see com.iver.cit.gvsig.fmap.edition.Command#redo()
36 36
	 */
37 37
	public void redo() throws DriverIOException, IOException {
38
			index=efs.getGeometryCount();
39
			((DefaultEditableFeatureSource)efs).doAddGeometry(geometry);
38
			//index=efs.getGeometryCount();
39
			index=((DefaultEditableFeatureSource)efs).doAddGeometry(geometry);
40 40
		
41 41
	}
42 42
}
branches/pilotoDWG/libraries/libFMap/src/com/iver/cit/gvsig/fmap/edition/DefaultEditableFeatureSource.java
351 351
					rAnt.getY() + rAnt.getHeight()), new Integer(geometryIndex));
352 352
			expansionFile.deleteLastGeometry();
353 353

  
354
			numAdd--;
354
			//numAdd--;
355 355
		} else {
356 356
			IGeometry g = null;
357 357
			g = getGeometry(geometryIndex);

Also available in: Unified diff