Revision 1725 org.gvsig.raster.georeferencing/trunk/org.gvsig.raster.georeferencing/org.gvsig.raster.georeferencing.swing/org.gvsig.raster.georeferencing.swing.impl/src/main/java/org/gvsig/raster/georeferencing/swing/impl/layer/GCPsGraphicLayer.java

View differences:

GCPsGraphicLayer.java
301 301
			GPGraphic gp = ((GPGraphic)pointList.getGraphicPoint(i));
302 302
			int pxLeft = 0, pxRight = 0, pyUp = 0, pyDown = 0;
303 303
			
304
			/*if(type == GPGraphic.PIXEL) {
305
				pxLeft = (int)gp.getDrawCoordsForPixelViews().getX() - 4;
306
				pxRight = (int)gp.getDrawCoordsForPixelViews().getX() + 4;
307
				pyUp = (int)gp.getDrawCoordsForPixelViews().getY() - 4;
308
				pyDown = (int)gp.getDrawCoordsForPixelViews().getY() + 4;
304
			if(type == GPGraphic.PIXEL) {
305
				pxLeft = (int)gp.getGeoPoint().getPixelPoint().getX() - 4;
306
				pxRight = (int)gp.getGeoPoint().getPixelPoint().getX() + 4;
307
				pyUp = (int)gp.getGeoPoint().getPixelPoint().getY() - 4;
308
				pyDown = (int)gp.getGeoPoint().getPixelPoint().getY() + 4;
309 309
			}
310 310
			
311 311
			if(type == GPGraphic.MAP) {
312
				pxLeft = (int)gp.getDrawCoordsForMapViews().getX() - 4;
313
				pxRight = (int)gp.getDrawCoordsForMapViews().getX() + 4;
314
				pyUp = (int)gp.getDrawCoordsForMapViews().getY() - 4;
315
				pyDown = (int)gp.getDrawCoordsForMapViews().getY() + 4;
316
			}*/
312
				pxLeft = (int)gp.getGeoPoint().getMapPoint().getX() - 4;
313
				pxRight = (int)gp.getGeoPoint().getMapPoint().getX() + 4;
314
				pyUp = (int)gp.getGeoPoint().getMapPoint().getY() - 4;
315
				pyDown = (int)gp.getGeoPoint().getMapPoint().getY() + 4;
316
			}
317 317
			
318 318
			if(e.getX() >= pxLeft && e.getX() <= pxRight && e.getY() >= pyUp && e.getY() <= pyDown) {
319 319
				lastGP = operanteGP = gp;

Also available in: Unified diff