Revision 2987 trunk/extensions/extGeoreferencing/src/com/iver/cit/gvsig/fmap/tools/Behavior/GeoRedimBehavior.java

View differences:

GeoRedimBehavior.java
135 135
	 * Funci?n que carga la capa si todav?a no lo est?.
136 136
	 */
137 137
	private void loadLayer(){
138
		//Cargamos la capa si esta es null
139
		if(this.lyrGeoRaster == null){
140
			View theView = (View) PluginServices.getMDIManager().getActiveView();
141
			for(int i=0;i<theView.getMapControl().getMapContext().getLayers().getLayersCount();i++){
142
				FLayer lyr = theView.getMapControl().getMapContext().getLayers().getLayer(i);
143
				if(lyr instanceof FLyrGeoRaster)
144
					this.lyrGeoRaster = (FLyrGeoRaster)lyr;
145
			}
138
		//Cargamos la capa 
139
		
140
		View theView = (View) PluginServices.getMDIManager().getActiveView();
141
		for(int i=0;i<theView.getMapControl().getMapContext().getLayers().getLayersCount();i++){
142
			FLayer lyr = theView.getMapControl().getMapContext().getLayers().getLayer(i);
143
			if(lyr instanceof FLyrGeoRaster && lyr.getName().startsWith("*"))
144
				this.lyrGeoRaster = (FLyrGeoRaster)lyr;
146 145
		}
147 146
	}
148 147
	

Also available in: Unified diff