Revision 5226 trunk/extensions/extCAD/src/com/iver/cit/gvsig/gui/cad/CADToolAdapter.java

View differences:

CADToolAdapter.java
162 162
		if (!(aux instanceof VectorialLayerEdited)) 
163 163
			return Double.MAX_VALUE;
164 164
		VectorialLayerEdited vle = (VectorialLayerEdited) aux;		
165
		VectorialEditableAdapter vea = vle.getVEA();
166 165
		FLyrVect lyrVect = (FLyrVect) vle.getLayer();
167 166
		SpatialCache cache = lyrVect.getSpatialCache();
168 167
		ViewPort vp = getMapControl().getViewPort();
......
180 179
		// usar e iterar por ellos para obtener el mejor punto.
181 180
		NearestPointSnapper defaultSnap = new NearestPointSnapper();
182 181
		double mapTolerance = vp.toMapDistance(SelectionCADTool.tolerance);
183
		SnappingVisitor snapVisitor = new SnappingVisitor(defaultSnap, point, mapTolerance);		
182
		SnappingVisitor snapVisitor = new SnappingVisitor(defaultSnap, point, mapTolerance);
183
		// System.out.println("Cache size = " + cache.size());
184 184
		cache.query(e, snapVisitor);
185 185
		
186 186

  

Also available in: Unified diff