Revision 1704 trunk/libraries/libFMap/src/com/iver/cit/gvsig/fmap/operations/strategies/DefaultStrategy.java

View differences:

DefaultStrategy.java
76 76
 */
77 77
public class DefaultStrategy implements Strategy {
78 78
	private static Logger logger = Logger.getLogger(DefaultStrategy.class.getName());
79
	private FLayer capa = null;
79
	FLayer capa = null;
80 80

  
81 81
	/**
82 82
	 * Crea un nuevo DefaultStrategy.
......
169 169
			        bMustClone = attr.isLoadedInMemory();			    
170 170
			    }
171 171
			}
172

  
172
			VectorialLegend l = (VectorialLegend) ((ClassifiableVectorial) capa).getLegend();
173 173
			for (int i = 0; i < sc; i++) {
174 174
				if (cancel.isCanceled()) {
175 175
					break;
......
187 187
				        geom = geom.cloneGeometry();				    
188 188
					geom.reProject(ct);
189 189
				}
190

  
191
				VectorialLegend l = (VectorialLegend) ((ClassifiableVectorial) capa).getLegend();
190
				
192 191
				// if (geom.intersects(extent)) {
193 192
				if (geom.fastIntersects(extent.getMinX(), extent.getMinY(), 
194 193
				         extent.getWidth(), extent.getHeight())) {

Also available in: Unified diff